findmnt: (verify) check mnt_table_next_fs() return code [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2019-05-16 14:33:47 +02:00
parent 374cb54381
commit 097c067f5c
1 changed files with 3 additions and 1 deletions

View File

@ -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) {