diff options
Diffstat (limited to 'usr/src/lib/libc/port/gen/_xftw.c')
-rw-r--r-- | usr/src/lib/libc/port/gen/_xftw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/lib/libc/port/gen/_xftw.c b/usr/src/lib/libc/port/gen/_xftw.c index b6d32eebd4..eb16988600 100644 --- a/usr/src/lib/libc/port/gen/_xftw.c +++ b/usr/src/lib/libc/port/gen/_xftw.c @@ -200,7 +200,7 @@ fwalk(const char *path, int (*fn)(const char *, const struct stat *, int), * We must ignore "." and "..", but other than that, * just create a path name and call self to check it out. */ - while (direntp = readdir(dirp)) { + while ((direntp = readdir(dirp)) != NULL) { long here; if (strcmp(direntp->d_name, ".") == 0 || |