summaryrefslogtreecommitdiffstats
path: root/usr.bin/lsvfs/lsvfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/lsvfs/lsvfs.c')
-rw-r--r--usr.bin/lsvfs/lsvfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/lsvfs/lsvfs.c b/usr.bin/lsvfs/lsvfs.c
index cb6a032..0b53a2d 100644
--- a/usr.bin/lsvfs/lsvfs.c
+++ b/usr.bin/lsvfs/lsvfs.c
@@ -44,7 +44,7 @@ main(int argc, char **argv)
}
}
} else {
- while (ovfcp = getvfsent()) {
+ while ((ovfcp = getvfsent()) != NULL) {
printf(FMT, ovfcp->vfc_name, ovfcp->vfc_refcount,
fmt_flags(ovfcp->vfc_flags));
}
OpenPOWER on IntegriCloud