diff options
author | Karel Zak | 2011-03-11 13:23:17 +0100 |
---|---|---|
committer | Karel Zak | 2011-03-11 13:23:17 +0100 |
commit | e3963f60134722065d7d7cb95f347208e5b7a812 (patch) | |
tree | cd5023d5cfd0dd14a03a6cd039058f6f06d68b5e /misc-utils/findmnt.c | |
parent | hwclock: build on non-Linux (diff) | |
download | kernel-qcow2-util-linux-e3963f60134722065d7d7cb95f347208e5b7a812.tar.gz kernel-qcow2-util-linux-e3963f60134722065d7d7cb95f347208e5b7a812.tar.xz kernel-qcow2-util-linux-e3963f60134722065d7d7cb95f347208e5b7a812.zip |
findmnt: check mnt_tab_next_fs() return code [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/findmnt.c')
-rw-r--r-- | misc-utils/findmnt.c | 3 |
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()) { /* |