Add a module to compute various statistics
[lttv.git] / ltt / branches / poly / lttv / hook.c
index 5edc62303c5638163d40585d2995f42d210b7f10..dc9b3ac86fb123c06a16a43903c94902e3fc24c5 100644 (file)
@@ -132,7 +132,7 @@ void lttv_hooks_remove_by_position(LttvHooks *h, unsigned i)
 
 gboolean lttv_hooks_call(LttvHooks *h, void *call_data)
 {
-  gboolean ret = FALSE;
+  gboolean ret, sum_ret = FALSE;
 
   LttvHookClosure *c;
 
@@ -141,10 +141,11 @@ gboolean lttv_hooks_call(LttvHooks *h, void *call_data)
   if(h != NULL) {
     for(i = 0 ; i < h->len ; i++) {
       c = &g_array_index(h, LttvHookClosure, i);
-      ret = ret || c->hook(c->hook_data,call_data);
+      ret = c->hook(c->hook_data,call_data);
+      sum_ret = sum_ret || ret;
     }
   }
-  return ret;
+  return sum_ret;
 }
 
 
This page took 0.039819 seconds and 4 git commands to generate.