]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
mtree reader: initialize checkfs with 0
authorMartin Matuska <martin@matuska.org>
Thu, 30 Jan 2020 23:29:35 +0000 (00:29 +0100)
committerMartin Matuska <martin@matuska.org>
Thu, 30 Jan 2020 23:29:35 +0000 (00:29 +0100)
libarchive/archive_read_support_format_mtree.c

index a7331a2672c7ad3792f079ec7fba405fff5b71f2..332944ac51bff6a7087563ca18c4bcb29056618f 100644 (file)
@@ -258,6 +258,7 @@ archive_read_support_format_mtree(struct archive *_a)
                    "Can't allocate mtree data");
                return (ARCHIVE_FATAL);
        }
+       mtree->checkfs = 0;
        mtree->fd = -1;
 
        __archive_rb_tree_init(&mtree->rbtree, &rb_ops);