From f126daa896f18c25f8c4d4d9c24b33cdab2bed4e Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 26 Oct 2008 20:00:50 +0100 Subject: Fix option irc.network.away_check --- src/core/wee-hook.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/wee-hook.c') diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c index 0de375a52..e872f67c4 100644 --- a/src/core/wee-hook.c +++ b/src/core/wee-hook.c @@ -522,6 +522,9 @@ hook_timer (struct t_weechat_plugin *plugin, long interval, int align_second, struct t_hook_timer *new_hook_timer; struct timezone tz; + if (interval <= 0) + return NULL; + new_hook = malloc (sizeof (*new_hook)); if (!new_hook) return NULL; -- cgit v1.2.3