summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmount/src/fs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmount/src/fs.c b/libmount/src/fs.c
index eb89bb8a3..4126ee9dc 100644
--- a/libmount/src/fs.c
+++ b/libmount/src/fs.c
@@ -188,9 +188,10 @@ struct libmnt_fs *mnt_copy_fs(struct libmnt_fs *dest,
dest = mnt_new_fs();
if (!dest)
return NULL;
+
+ dest->tab = NULL;
}
- dest->tab = NULL;
dest->id = src->id;
dest->parent = src->parent;
dest->devno = src->devno;