diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-23 18:43:16 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-23 18:43:16 +0200 |
commit | 00da72bee09cfe4a757cbba4465a76269dae9f43 (patch) | |
tree | d30eb748bff17b068232e6c47dbf0560d253a35f /shell | |
parent | 59f8475924760a5d74e18a88f325493e7c38c537 (diff) | |
download | busybox-w32-00da72bee09cfe4a757cbba4465a76269dae9f43.tar.gz busybox-w32-00da72bee09cfe4a757cbba4465a76269dae9f43.tar.bz2 busybox-w32-00da72bee09cfe4a757cbba4465a76269dae9f43.zip |
tidy up strtok use
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 2 |
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) | |||
2556 | new = stack_putstr(p, new); | 2556 | new = stack_putstr(p, new); |
2557 | USTPUTC('/', new); | 2557 | USTPUTC('/', new); |
2558 | } | 2558 | } |
2559 | p = strtok(0, "/"); | 2559 | p = strtok(NULL, "/"); |
2560 | } | 2560 | } |
2561 | if (new > lim) | 2561 | if (new > lim) |
2562 | STUNPUTC(new); | 2562 | STUNPUTC(new); |