]> granicus.if.org Git - p11-kit/commitdiff
Fix bug in hashtable rewrite.
authorStef Walter <stefw@collabora.co.uk>
Wed, 27 Jul 2011 10:35:55 +0000 (12:35 +0200)
committerStef Walter <stefw@collabora.co.uk>
Wed, 27 Jul 2011 10:35:55 +0000 (12:35 +0200)
 * Initialization mixup.

p11-kit/hashmap.c

index 902682712ba4c1f541d753285a1e4175350f0cf8..518a9841453a89a752aa16743f85fcef85ebb323 100644 (file)
@@ -271,7 +271,7 @@ hash_create (hash_hash_func hash_func,
                        return NULL;
                }
 
-               map->num_buckets = 0;
+               map->num_items = 0;
        }
 
        return map;