diff options
-rw-r--r-- | src/util/container_heap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/container_heap.c b/src/util/container_heap.c index 78881d8081..a32cb6c5c1 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; } |