Returns now GNUNET_SYSERR
[oweals/gnunet.git] / src / util / container_heap.c
index 78881d8081d898aa8b67c357cc17081b7dfa0cd6..7cd30a0a740c784a04d90fd1f172ac1b59dd2c8b 100644 (file)
@@ -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
     {