struct GNUNET_CONTAINER_Heap *heap;
heap = GNUNET_malloc (sizeof (struct GNUNET_CONTAINER_Heap));
- heap->walk_pos = NULL;
- heap->root = NULL;
- heap->size = 0;
heap->order = order;
return 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
{