aboutsummaryrefslogtreecommitdiff
path: root/src/util/container_multihashmap.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-10-20 08:05:36 +0000
committerChristian Grothoff <christian@grothoff.org>2009-10-20 08:05:36 +0000
commita8b696f30104b1c19939be21d0a04328feeb3e9f (patch)
tree78e448f66b12afcd335cffcfb29146c873425b03 /src/util/container_multihashmap.c
parent4d827715615a3ae8a47fbaf5ebcd9cf6730942df (diff)
downloadgnunet-a8b696f30104b1c19939be21d0a04328feeb3e9f.tar.gz
gnunet-a8b696f30104b1c19939be21d0a04328feeb3e9f.zip
fix
Diffstat (limited to 'src/util/container_multihashmap.c')
-rw-r--r--src/util/container_multihashmap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util/container_multihashmap.c b/src/util/container_multihashmap.c
index 38cd65753..2c88b1a52 100644
--- a/src/util/container_multihashmap.c
+++ b/src/util/container_multihashmap.c
@@ -403,7 +403,10 @@ GNUNET_CONTAINER_multihashmap_put (struct GNUNET_CONTAINER_MultiHashMap *map,
403 } 403 }
404 } 404 }
405 if (map->size / 3 >= map->map_length / 4) 405 if (map->size / 3 >= map->map_length / 4)
406 grow (map); 406 {
407 grow (map);
408 i = idx_of (map, key);
409 }
407 e = GNUNET_malloc (sizeof (struct MapEntry)); 410 e = GNUNET_malloc (sizeof (struct MapEntry));
408 e->key = *key; 411 e->key = *key;
409 e->value = value; 412 e->value = value;