From f89cecf71d09b73eaa4d81dcf3fdbd2dd2234c37 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 1 Oct 2011 21:19:42 +0200 Subject: core: add missing hook type "focus" in array "hook_type_string" (fix crash when calling infolist_get with bad hook type) --- src/core/wee-hook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c index 4414e3a09..1fad570b3 100644 --- a/src/core/wee-hook.c +++ b/src/core/wee-hook.c @@ -63,7 +63,7 @@ char *hook_type_string[HOOK_NUM_TYPES] = { "command", "command_run", "timer", "fd", "process", "connect", "print", "signal", "hsignal", "config", "completion", "modifier", - "info", "info_hashtable", "infolist", "hdata" }; + "info", "info_hashtable", "infolist", "hdata", "focus" }; struct t_hook *weechat_hooks[HOOK_NUM_TYPES]; /* list of hooks */ struct t_hook *last_weechat_hook[HOOK_NUM_TYPES]; /* last hook */ int hook_exec_recursion = 0; /* 1 when a hook is executed */ -- cgit v1.2.3