diff options
Diffstat (limited to 'src/util/container_multihashmap.c')
-rw-r--r-- | src/util/container_multihashmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/container_multihashmap.c b/src/util/container_multihashmap.c index bf5967513..7ca6676cb 100644 --- a/src/util/container_multihashmap.c +++ b/src/util/container_multihashmap.c | |||
@@ -85,6 +85,7 @@ GNUNET_CONTAINER_multihashmap_create (unsigned int len) | |||
85 | { | 85 | { |
86 | struct GNUNET_CONTAINER_MultiHashMap *ret; | 86 | struct GNUNET_CONTAINER_MultiHashMap *ret; |
87 | 87 | ||
88 | GNUNET_assert (len > 0); | ||
88 | ret = GNUNET_malloc (sizeof (struct GNUNET_CONTAINER_MultiHashMap)); | 89 | ret = GNUNET_malloc (sizeof (struct GNUNET_CONTAINER_MultiHashMap)); |
89 | ret->map = GNUNET_malloc (len * sizeof (struct MapEntry *)); | 90 | ret->map = GNUNET_malloc (len * sizeof (struct MapEntry *)); |
90 | ret->map_length = len; | 91 | ret->map_length = len; |