diff options
Diffstat (limited to 'usr/src/lib/libc/port/gen/nftw.c')
-rw-r--r-- | usr/src/lib/libc/port/gen/nftw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/lib/libc/port/gen/nftw.c b/usr/src/lib/libc/port/gen/nftw.c index f07f9a9f94..a72e955991 100644 --- a/usr/src/lib/libc/port/gen/nftw.c +++ b/usr/src/lib/libc/port/gen/nftw.c @@ -364,7 +364,7 @@ walk(char *component, this.inode = statb.st_ino; oldbase = vp->state.base; vp->state.base = (int)(component - vp->tmppath); - while (dir = readdir(this.fd)) { + while ((dir = readdir(this.fd)) != NULL) { if (dir->d_ino == 0) continue; q = dir->d_name; |