gboolean lttv_hooks_call(LttvHooks *h, void *call_data)
{
- gboolean ret = FALSE;
+ gboolean ret, sum_ret = FALSE;
LttvHookClosure *c;
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;
}