diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common/writer.c | 2 | ||||
-rw-r--r-- | lib/sqfs/id_table.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/common/writer.c b/lib/common/writer.c index 1bbf6bd..b6adc59 100644 --- a/lib/common/writer.c +++ b/lib/common/writer.c @@ -136,7 +136,7 @@ int sqfs_writer_init(sqfs_writer_t *sqfs, const sqfs_writer_cfg_t *wrcfg) memset(&sqfs->stats, 0, sizeof(sqfs->stats)); register_stat_hooks(sqfs->data, &sqfs->stats); - sqfs->idtbl = sqfs_id_table_create(); + sqfs->idtbl = sqfs_id_table_create(0); if (sqfs->idtbl == NULL) { sqfs_perror(wrcfg->filename, "creating ID table", SQFS_ERROR_ALLOC); diff --git a/lib/sqfs/id_table.c b/lib/sqfs/id_table.c index a320eca..8c30964 100644 --- a/lib/sqfs/id_table.c +++ b/lib/sqfs/id_table.c @@ -22,8 +22,11 @@ struct sqfs_id_table_t { size_t max_ids; }; -sqfs_id_table_t *sqfs_id_table_create(void) +sqfs_id_table_t *sqfs_id_table_create(sqfs_u32 flags) { + if (flags != 0) + return NULL; + return calloc(1, sizeof(sqfs_id_table_t)); } |