summaryrefslogtreecommitdiff
path: root/lib/common/write_export_table.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common/write_export_table.c')
-rw-r--r--lib/common/write_export_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common/write_export_table.c b/lib/common/write_export_table.c
index c797577..c0d4993 100644
--- a/lib/common/write_export_table.c
+++ b/lib/common/write_export_table.c
@@ -20,7 +20,7 @@ int write_export_table(const char *filename, sqfs_file_t *file,
if (fs->inode_tbl_size < 1)
return 0;
- table = alloc_array(sizeof(sqfs_u64), fs->inode_tbl_size);
+ table = calloc(1, sizeof(sqfs_u64) * fs->inode_tbl_size);
if (table == NULL) {
perror("Allocating NFS export table");