summaryrefslogtreecommitdiffstats
path: root/misc-utils/findmnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc-utils/findmnt.c')
-rw-r--r--misc-utils/findmnt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc-utils/findmnt.c b/misc-utils/findmnt.c
index 97d09e2c4..07c0eda27 100644
--- a/misc-utils/findmnt.c
+++ b/misc-utils/findmnt.c
@@ -424,7 +424,8 @@ static struct libmnt_fs *get_next_fs(struct libmnt_table *tb,
/*
* Print whole file
*/
- mnt_table_next_fs(tb, itr, &fs);
+ if (mnt_table_next_fs(tb, itr, &fs) != 0)
+ return NULL;
} else if (is_mount_compatible_mode()) {
/*