From: Stef Walter Date: Wed, 27 Jul 2011 10:35:55 +0000 (+0200) Subject: Fix bug in hashtable rewrite. X-Git-Tag: 0.3~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb0952dbeb607542b7feab80b1bbd2b1258cd15f;p=p11-kit Fix bug in hashtable rewrite. * Initialization mixup. --- diff --git a/p11-kit/hashmap.c b/p11-kit/hashmap.c index 9026827..518a984 100644 --- a/p11-kit/hashmap.c +++ b/p11-kit/hashmap.c @@ -271,7 +271,7 @@ hash_create (hash_hash_func hash_func, return NULL; } - map->num_buckets = 0; + map->num_items = 0; } return map;