projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
984945f
)
forgot heap check
author
Nathan S. Evans
<evans@in.tum.de>
Wed, 23 Sep 2009 21:50:04 +0000
(21:50 +0000)
committer
Nathan S. Evans
<evans@in.tum.de>
Wed, 23 Sep 2009 21:50:04 +0000
(21:50 +0000)
src/util/container_heap.c
patch
|
blob
|
history
diff --git
a/src/util/container_heap.c
b/src/util/container_heap.c
index 96efe9d048e0f49927c0387bd6c97da2441513d6..16918985d963cd237f77c46cd27d7c7ffd0f5fd7 100644
(file)
--- a/
src/util/container_heap.c
+++ b/
src/util/container_heap.c
@@
-158,7
+158,7
@@
find_element (struct GNUNET_CONTAINER_heap_node *node, void *element)
if (node->left_child != NULL)
ret = find_element (node->left_child, element);
- if (
node->right_child != NULL
)
+ if (
(ret == NULL) && (node->right_child != NULL)
)
ret = find_element (node->right_child, element);
return ret;