From 7595e5de319265cadbd3fc8ccceb97a29e9111f3 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Thu, 18 Mar 2010 11:30:48 +0000 Subject: [PATCH] initialize size to zero --- src/util/container_heap.c | 3 +++ 1 file changed, 3 insertions(+) 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) struct GNUNET_CONTAINER_Heap *heap; heap = GNUNET_malloc (sizeof (struct GNUNET_CONTAINER_Heap)); + heap->walk_pos = NULL; + heap->root = NULL; + heap->size = 0; heap->order = order; return heap; } -- 2.25.1