mirror of https://github.com/mgba-emu/mgba.git
Util: Actually initialize the size of a table
This commit is contained in:
parent
dbdf10843e
commit
98a2e6e324
|
@ -70,6 +70,7 @@ void TableInit(struct Table* table, size_t initialSize, void (deinitializer(void
|
||||||
}
|
}
|
||||||
table->tableSize = initialSize;
|
table->tableSize = initialSize;
|
||||||
table->table = calloc(table->tableSize, sizeof(struct TableList));
|
table->table = calloc(table->tableSize, sizeof(struct TableList));
|
||||||
|
table->size = 0;
|
||||||
table->deinitializer = deinitializer;
|
table->deinitializer = deinitializer;
|
||||||
|
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
Loading…
Reference in New Issue