summaryrefslogtreecommitdiff
path: root/lib/sqfs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqfs')
-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;