From 98a2e6e324d64739a9264c316bae7156ee363ad9 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Tue, 1 Nov 2016 23:27:25 -0700 Subject: [PATCH] Util: Actually initialize the size of a table --- src/util/table.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/table.c b/src/util/table.c index 09f40064d..ebc756c29 100644 --- a/src/util/table.c +++ b/src/util/table.c @@ -70,6 +70,7 @@ void TableInit(struct Table* table, size_t initialSize, void (deinitializer(void } table->tableSize = initialSize; table->table = calloc(table->tableSize, sizeof(struct TableList)); + table->size = 0; table->deinitializer = deinitializer; size_t i;