[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r25494 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r25494 - gnunet/src/util |
Date: |
Sun, 16 Dec 2012 19:57:51 +0100 |
Author: grothoff
Date: 2012-12-16 19:57:50 +0100 (Sun, 16 Dec 2012)
New Revision: 25494
Modified:
gnunet/src/util/container_heap.c
Log:
-fixing heap walker
Modified: gnunet/src/util/container_heap.c
===================================================================
--- gnunet/src/util/container_heap.c 2012-12-15 14:24:17 UTC (rev 25493)
+++ gnunet/src/util/container_heap.c 2012-12-16 18:57:50 UTC (rev 25494)
@@ -400,6 +400,8 @@
heap->root = root->left_child;
insert_node (heap, heap->root, root->right_child);
}
+ if (heap->walk_pos == root)
+ heap->walk_pos = heap->root;
GNUNET_free (root);
#if EXTRA_CHECKS
GNUNET_assert (((heap->size == 0) && (heap->root == NULL)) ||
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r25494 - gnunet/src/util,
gnunet <=