projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
755d4ac
)
initialize size to zero
author
Nathan S. Evans
<evans@in.tum.de>
Thu, 18 Mar 2010 11:30:48 +0000
(11:30 +0000)
committer
Nathan S. Evans
<evans@in.tum.de>
Thu, 18 Mar 2010 11:30:48 +0000
(11:30 +0000)
src/util/container_heap.c
patch
|
blob
|
history
diff --git
a/src/util/container_heap.c
b/src/util/container_heap.c
index 78881d8081d898aa8b67c357cc17081b7dfa0cd6..a32cb6c5c1dc47d51622248f506f84d1df64cf93 100644
(file)
--- 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;
}