*: placate some compile warnings on OSX

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2016-09-01 11:16:22 +02:00
parent 76d72376e0
commit ef15970d7e
3 changed files with 5 additions and 5 deletions

View File

@@ -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);