diff options
Diffstat (limited to 'src/util/container_heap.c')
-rw-r--r-- | src/util/container_heap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/container_heap.c b/src/util/container_heap.c index 78881d808..7cd30a0a7 100644 --- a/src/util/container_heap.c +++ b/src/util/container_heap.c | |||
@@ -378,8 +378,7 @@ GNUNET_CONTAINER_heap_remove_root (struct GNUNET_CONTAINER_Heap *heap) | |||
378 | else if (root->right_child == NULL) | 378 | else if (root->right_child == NULL) |
379 | { | 379 | { |
380 | heap->root = root->left_child; | 380 | heap->root = root->left_child; |
381 | if (root->left_child != NULL) | 381 | root->left_child->parent = NULL; |
382 | root->left_child->parent = NULL; | ||
383 | } | 382 | } |
384 | else | 383 | else |
385 | { | 384 | { |