aboutsummaryrefslogtreecommitdiff
path: root/src/util/container_heap.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-12-16 18:57:50 +0000
committerChristian Grothoff <christian@grothoff.org>2012-12-16 18:57:50 +0000
commitda1263bbfff505f8cdb7dccd03b0ac68aa195c58 (patch)
treeaefba672ce6f5a698a9d44823d64c7967fa3bb0b /src/util/container_heap.c
parent91629d90b8ff075fe7af20fb57b1bdee19296515 (diff)
downloadgnunet-da1263bbfff505f8cdb7dccd03b0ac68aa195c58.tar.gz
gnunet-da1263bbfff505f8cdb7dccd03b0ac68aa195c58.zip
-fixing heap walker
Diffstat (limited to 'src/util/container_heap.c')
-rw-r--r--src/util/container_heap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/container_heap.c b/src/util/container_heap.c
index b9cab1e9c..e2a27002a 100644
--- a/src/util/container_heap.c
+++ b/src/util/container_heap.c
@@ -400,6 +400,8 @@ GNUNET_CONTAINER_heap_remove_root (struct GNUNET_CONTAINER_Heap *heap)
400 heap->root = root->left_child; 400 heap->root = root->left_child;
401 insert_node (heap, heap->root, root->right_child); 401 insert_node (heap, heap->root, root->right_child);
402 } 402 }
403 if (heap->walk_pos == root)
404 heap->walk_pos = heap->root;
403 GNUNET_free (root); 405 GNUNET_free (root);
404#if EXTRA_CHECKS 406#if EXTRA_CHECKS
405 GNUNET_assert (((heap->size == 0) && (heap->root == NULL)) || 407 GNUNET_assert (((heap->size == 0) && (heap->root == NULL)) ||