init ref count to 1
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 2 Jul 2004 16:06:40 +0000 (16:06 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 2 Jul 2004 16:06:40 +0000 (16:06 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@615 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/lttv/hook.c

index f0e535d9e6823c9b83bd3971b72fc0dce4f8b61a..c3f3d911a0c055251ff03be53301e0e987670c11 100644 (file)
@@ -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 */
This page took 0.032258 seconds and 4 git commands to generate.