report
authorChristian Grothoff <christian@grothoff.org>
Mon, 5 Apr 2010 20:45:53 +0000 (20:45 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 5 Apr 2010 20:45:53 +0000 (20:45 +0000)
src/util/container_multihashmap.c

index bf596751302292e68b72dc498dda0f0240798a40..7ca6676cbc0b308e32e0e80d6f393d979a9a18ed 100644 (file)
@@ -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;