summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'shlibs/mount/src/fs.c')
-rw-r--r--shlibs/mount/src/fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shlibs/mount/src/fs.c b/shlibs/mount/src/fs.c
index b8e9085d1..61bad7fd7 100644
--- a/shlibs/mount/src/fs.c
+++ b/shlibs/mount/src/fs.c
@@ -478,7 +478,7 @@ char *mnt_fs_strdup_options(mnt_fs *fs)
errno = 0;
res = merge_optstr(fs->vfs_optstr, fs->fs_optstr);
- if (errno)
+ if (!res && errno)
return NULL;
if (fs->user_optstr) {
if (mnt_optstr_append_option(&res, fs->user_optstr, NULL)) {