gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r9665 - GNUnet/src/util/containers


From: gnunet
Subject: [GNUnet-SVN] r9665 - GNUnet/src/util/containers
Date: Wed, 2 Dec 2009 13:47:04 +0100

Author: grothoff
Date: 2009-12-02 13:47:04 +0100 (Wed, 02 Dec 2009)
New Revision: 9665

Modified:
   GNUnet/src/util/containers/heap.c
Log:
fix

Modified: GNUnet/src/util/containers/heap.c
===================================================================
--- GNUnet/src/util/containers/heap.c   2009-12-02 12:46:00 UTC (rev 9664)
+++ GNUnet/src/util/containers/heap.c   2009-12-02 12:47:04 UTC (rev 9665)
@@ -485,12 +485,13 @@
                    struct GNUNET_CONTAINER_heap_node *node,
                    GNUNET_CONTAINER_HeapIterator iterator, void *cls)
 {
+  int ret;
   if (node == NULL)
-    return;
-  if (GNUNET_YES != internal_iterator (root, node->left_child, iterator, cls))
-    return;
-  if (GNUNET_YES != internal_iterator (root, node->right_child, iterator, cls))
-    return;
+    return GNUNET_YES;
+  if (GNUNET_YES != (ret =internal_iterator (root, node->left_child, iterator, 
cls)))
+    return ret;
+  if (GNUNET_YES != (ret = internal_iterator (root, node->right_child, 
iterator, cls)))
+    return ret;
   return iterator (node->element, node->cost, root, cls);
 }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]