We should not use the results from mnt_split_optstr() if the function
failed.
Signed-off-by: Karel Zak <kzak@redhat.com>
return 0;
rc = mnt_split_optstr((char *) optstr, &u, &v, &f, 0, 0);
+ if (rc)
+ return rc;
+
if (!rc && v)
rc = mnt_optstr_append_option(&fs->vfs_optstr, v, NULL);
if (!rc && f)
return 0;
rc = mnt_split_optstr((char *) optstr, &u, &v, &f, 0, 0);
+ if (rc)
+ return rc;
+
if (!rc && v)
rc = mnt_optstr_prepend_option(&fs->vfs_optstr, v, NULL);
if (!rc && f)