aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-09-01 11:16:22 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2016-09-01 11:16:22 +0200
commitef15970d7ec904eb33ab572abc5de1f51b7e1cfa (patch)
treeaa790e1e462f4aebba74dd18c96625f4395148de /shell/ash.c
parent76d72376e0244a5cafd4880cdc623e37d86a75e4 (diff)
downloadbusybox-ef15970d7ec904eb33ab572abc5de1f51b7e1cfa.tar.gz
*: placate some compile warnings on OSX
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 496167fbe..789a81cc3 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -13004,10 +13004,10 @@ init(void)
#endif
p = lookupvar("PWD");
if (p) {
- if (*p != '/' || stat(p, &st1) || stat(".", &st2)
+ if (p[0] != '/' || stat(p, &st1) || stat(".", &st2)
|| st1.st_dev != st2.st_dev || st1.st_ino != st2.st_ino
) {
- p = '\0';
+ p = NULL;
}
}
setpwd(p, 0);