all repos — mgba @ 98a2e6e324d64739a9264c316bae7156ee363ad9

mGBA Game Boy Advance Emulator

Util: Actually initialize the size of a table
Jeffrey Pfau jeffrey@endrift.com
Tue, 01 Nov 2016 23:27:25 -0700
commit

98a2e6e324d64739a9264c316bae7156ee363ad9

parent

dbdf10843ebf7c294faf0a4108e6715a02073dc7

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/util/table.csrc/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;