From: compudj Date: Fri, 2 Jul 2004 16:06:40 +0000 (+0000) Subject: init ref count to 1 X-Git-Tag: v0.12.20~2874 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5a6db8b4b6721ca7932617cb0929bebe5fd9ac90;p=lttv.git init ref count to 1 git-svn-id: http://ltt.polymtl.ca/svn@615 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/lttv/hook.c b/ltt/branches/poly/lttv/lttv/hook.c index f0e535d9..c3f3d911 100644 --- a/ltt/branches/poly/lttv/lttv/hook.c +++ b/ltt/branches/poly/lttv/lttv/hook.c @@ -58,6 +58,7 @@ void lttv_hooks_add(LttvHooks *h, LttvHook f, void *hook_data, LttvHookPrio p) new_c.hook = f; new_c.hook_data = hook_data; new_c.prio = p; + new_c.ref_count = 1; /* Preliminary check for duplication */ /* only hook and hook data is checked */