From ef15970d7ec904eb33ab572abc5de1f51b7e1cfa Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 1 Sep 2016 11:16:22 +0200 Subject: *: placate some compile warnings on OSX Signed-off-by: Denys Vlasenko --- shell/ash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shell') 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); -- cgit v1.2.3-55-g6feb