Util: Actually initialize the size of a table
Jeffrey Pfau jeffrey@endrift.com
Tue, 01 Nov 2016 23:27:25 -0700
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/util/table.c
→
src/util/table.c
@@ -70,6 +70,7 @@ initialSize = TABLE_INITIAL_SIZE;
} table->tableSize = initialSize; table->table = calloc(table->tableSize, sizeof(struct TableList)); + table->size = 0; table->deinitializer = deinitializer; size_t i;