From 8fd0de5147610235fe80e4423f7519e531266c5f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 5 Apr 2010 20:45:53 +0000 Subject: [PATCH] report --- src/util/container_multihashmap.c | 1 + 1 file changed, 1 insertion(+) 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) { struct GNUNET_CONTAINER_MultiHashMap *ret; + GNUNET_assert (len > 0); ret = GNUNET_malloc (sizeof (struct GNUNET_CONTAINER_MultiHashMap)); ret->map = GNUNET_malloc (len * sizeof (struct MapEntry *)); ret->map_length = len; -- 2.25.1