aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/container_heap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/container_heap.c b/src/util/container_heap.c
index 78881d8081..7cd30a0a74 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)
else if (root->right_child == NULL)
{
heap->root = root->left_child;
- if (root->left_child != NULL)
- root->left_child->parent = NULL;
+ root->left_child->parent = NULL;
}
else
{