Mercurial > audlegacy
comparison src/audlegacy/hook.c @ 4866:c97b4291ec8b
We do not care about hook_find(name) past the if-statement. Do not assign to a variable.
author | Tony Vroon <chainsaw@gentoo.org> |
---|---|
date | Mon, 20 Apr 2009 00:12:18 +0100 |
parents | b2ee645f3e59 |
children | 4168232afc19 |
comparison
equal
deleted
inserted
replaced
4865:f51f043d5e4c | 4866:c97b4291ec8b |
---|---|
44 { | 44 { |
45 Hook *hook; | 45 Hook *hook; |
46 | 46 |
47 g_return_if_fail(name != NULL); | 47 g_return_if_fail(name != NULL); |
48 | 48 |
49 if ((hook = hook_find(name)) != NULL) | 49 if (hook_find(name) != NULL) |
50 return; | 50 return; |
51 | 51 |
52 hook = g_new0(Hook, 1); | 52 hook = g_new0(Hook, 1); |
53 hook->name = g_strdup(name); | 53 hook->name = g_strdup(name); |
54 hook->items = NULL; | 54 hook->items = NULL; |