findmnt: (verify) check mnt_table_next_fs() return code [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
374cb54381
commit
097c067f5c
|
@ -97,7 +97,9 @@ static int verify_order(struct verify_context *vfy)
|
|||
|
||||
/* set iterator position to 'fs' */
|
||||
mnt_table_set_iter(vfy->tb, itr, vfy->fs);
|
||||
mnt_table_next_fs(vfy->tb, itr, &next);
|
||||
|
||||
if (mnt_table_next_fs(vfy->tb, itr, &next) != 0)
|
||||
goto done;
|
||||
|
||||
/* scan all next filesystems */
|
||||
while (mnt_table_next_fs(vfy->tb, itr, &next) == 0) {
|
||||
|
|
Loading…
Reference in New Issue