summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Matuska <martin@matuska.org>2020-01-31 00:29:35 +0100
committerMartin Matuska <martin@matuska.org>2020-01-31 00:29:35 +0100
commit53744623d67aff8f279c7eecffc7105609bce655 (patch)
tree30052b02704d634e820cf2ebda9845c87a951c35
parent9ebb248419786e116b2533353c27ae6277cf1e7b (diff)
downloadlibarchive-53744623d67aff8f279c7eecffc7105609bce655.tar.gz
mtree reader: initialize checkfs with 0
-rw-r--r--libarchive/archive_read_support_format_mtree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libarchive/archive_read_support_format_mtree.c b/libarchive/archive_read_support_format_mtree.c
index a7331a26..332944ac 100644
--- a/libarchive/archive_read_support_format_mtree.c
+++ b/libarchive/archive_read_support_format_mtree.c
@@ -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);