diff options
Diffstat (limited to 'src/print_disk_info.c')
-rw-r--r-- | src/print_disk_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print_disk_info.c b/src/print_disk_info.c index 4ed2f22..e225923 100644 --- a/src/print_disk_info.c +++ b/src/print_disk_info.c @@ -131,7 +131,7 @@ void print_disk_info(yajl_gen json_gen, char *buffer, const char *path, const ch struct mntent *m; bool found = false; - while (NULL != (m = getmntent(mntentfile))) { + while ((m = getmntent(mntentfile)) != NULL) { if (strcmp(m->mnt_dir, path) == 0) { found = true; break; |