summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko2016-09-01 11:16:22 +0200
committerDenys Vlasenko2016-09-01 11:16:22 +0200
commitef15970d7ec904eb33ab572abc5de1f51b7e1cfa (patch)
treeaa790e1e462f4aebba74dd18c96625f4395148de /shell
parent76d72376e0244a5cafd4880cdc623e37d86a75e4 (diff)
downloadbusybox-ef15970d7ec904eb33ab572abc5de1f51b7e1cfa.zip
busybox-ef15970d7ec904eb33ab572abc5de1f51b7e1cfa.tar.gz
*: placate some compile warnings on OSX
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 496167f..789a81c 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);