aboutsummaryrefslogtreecommitdiff
path: root/lib/common
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-10-08 00:44:35 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-10-08 00:44:54 +0200
commit5cdaa85085810cc329654248be1ec5206367f68c (patch)
treedb29f27cca760b4712e8d9d3ec007a8922d2066a /lib/common
parentb9aafc41fdb11130bbce61db6d9fdaa380c6df5d (diff)
Make sure the statistics counters are initialized to 0
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/common')
-rw-r--r--lib/common/writer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/common/writer.c b/lib/common/writer.c
index fa732ad..cfa22de 100644
--- a/lib/common/writer.c
+++ b/lib/common/writer.c
@@ -149,6 +149,7 @@ int sqfs_writer_init(sqfs_writer_t *sqfs, const sqfs_writer_cfg_t *wrcfg)
goto fail_cmp;
}
+ memset(&sqfs->stats, 0, sizeof(sqfs->stats));
register_stat_hooks(sqfs->data, &sqfs->stats);
sqfs->idtbl = sqfs_id_table_create();