diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-04-05 20:45:53 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-04-05 20:45:53 +0000 |
commit | 8fd0de5147610235fe80e4423f7519e531266c5f (patch) | |
tree | 61c2de7a4c1b9e3d5f5b27f742cf65635bab96ef /src/util/container_multihashmap.c | |
parent | 39d73bb699546258ac119ed1dad7dc3c1493455e (diff) | |
download | gnunet-8fd0de5147610235fe80e4423f7519e531266c5f.tar.gz gnunet-8fd0de5147610235fe80e4423f7519e531266c5f.zip |
report
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; |