aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-10-08 00:57:09 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-10-08 00:57:09 +0200
commit0b135e181b1610ff3d1e4a46dfdf06337b4a37e8 (patch)
tree1725ccba5a51bb4717a08b23a698ea7929f28054 /lib
parentceb69c618438e9e250616af4ad8063151e7d99c5 (diff)
Fix: propperly clear index entry
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/sqfs/dir_writer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqfs/dir_writer.c b/lib/sqfs/dir_writer.c
index 9a1901a..5b0ce7a 100644
--- a/lib/sqfs/dir_writer.c
+++ b/lib/sqfs/dir_writer.c
@@ -337,6 +337,7 @@ sqfs_inode_generic_t
inode->num_dir_idx_bytes = 0;
for (idx = writer->idx; idx != NULL; idx = idx->next) {
+ memset(&ent, 0, sizeof(ent));
ent.start_block = idx->block;
ent.index = idx->index;
ent.size = idx->ent->name_len - 1;