summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-11-23 11:49:12 +0100
committerEric Anholt <eric@anholt.net>2009-11-23 18:05:41 -0800
commit09c53ef3d21af4d6bcd5921790d899054f23dce1 (patch)
tree162cf5cd82c9351710a6208228dcf5a661f44234
parent0acdee5dda8ecb39e1d5bee61ebef5b4a1373a59 (diff)
Fix segfault in insert_and_lookup test.
-rw-r--r--hash_table.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hash_table.c b/hash_table.c
index 7ea01f1..1625028 100644
--- a/hash_table.c
+++ b/hash_table.c
@@ -109,6 +109,7 @@ hash_table_create(uint32_t (*hash_function)(const void *key),
ht->rehash = hash_sizes[ht->size_index].rehash;
ht->max_entries = hash_sizes[ht->size_index].max_entries;
ht->hash_function = hash_function;
+ ht->key_equals_function = key_equals_function;
ht->table = calloc(ht->size, sizeof(*ht->table));
if (ht->table == NULL) {