diff options
Diffstat (limited to 'lib/sqfs/frag_reader.c')
-rw-r--r-- | lib/sqfs/frag_reader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqfs/frag_reader.c b/lib/sqfs/frag_reader.c index 02d813e..0d13bcd 100644 --- a/lib/sqfs/frag_reader.c +++ b/lib/sqfs/frag_reader.c @@ -92,7 +92,7 @@ frag_reader_t *frag_reader_create(sqfs_super_t *super, int fd, if (f == NULL) goto fail_rd; - tbl = malloc(count * sizeof(tbl[0])); + tbl = calloc(count, sizeof(tbl[0])); if (tbl == NULL) goto fail_rd; |