aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-03-18 11:30:48 +0000
committerNathan S. Evans <evans@in.tum.de>2010-03-18 11:30:48 +0000
commit7595e5de319265cadbd3fc8ccceb97a29e9111f3 (patch)
tree75e9c49f06af3a1545095456408315da4d5b7c0c /src
parent755d4acb86189c867f1092c267b0ad118665aafe (diff)
downloadgnunet-7595e5de319265cadbd3fc8ccceb97a29e9111f3.tar.gz
gnunet-7595e5de319265cadbd3fc8ccceb97a29e9111f3.zip
initialize size to zero
Diffstat (limited to 'src')
-rw-r--r--src/util/container_heap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/container_heap.c b/src/util/container_heap.c
index 78881d808..a32cb6c5c 100644
--- a/src/util/container_heap.c
+++ b/src/util/container_heap.c
@@ -135,6 +135,9 @@ GNUNET_CONTAINER_heap_create (enum GNUNET_CONTAINER_HeapOrder order)
135 struct GNUNET_CONTAINER_Heap *heap; 135 struct GNUNET_CONTAINER_Heap *heap;
136 136
137 heap = GNUNET_malloc (sizeof (struct GNUNET_CONTAINER_Heap)); 137 heap = GNUNET_malloc (sizeof (struct GNUNET_CONTAINER_Heap));
138 heap->walk_pos = NULL;
139 heap->root = NULL;
140 heap->size = 0;
138 heap->order = order; 141 heap->order = order;
139 return heap; 142 return heap;
140} 143}