aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2015-10-23 18:43:16 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2015-10-23 18:43:16 +0200
commit00da72bee09cfe4a757cbba4465a76269dae9f43 (patch)
treed30eb748bff17b068232e6c47dbf0560d253a35f /shell
parent59f8475924760a5d74e18a88f325493e7c38c537 (diff)
downloadbusybox-00da72bee09cfe4a757cbba4465a76269dae9f43.tar.gz
tidy up strtok use
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 8a1628e81..17121aa9b 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -2556,7 +2556,7 @@ updatepwd(const char *dir)
new = stack_putstr(p, new);
USTPUTC('/', new);
}
- p = strtok(0, "/");
+ p = strtok(NULL, "/");
}
if (new > lim)
STUNPUTC(new);