summaryrefslogtreecommitdiff
path: root/src/core/wee-hook.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-10-26 20:00:50 +0100
committerSebastien Helleu <flashcode@flashtux.org>2008-10-26 20:00:50 +0100
commitf126daa896f18c25f8c4d4d9c24b33cdab2bed4e (patch)
tree8e182533fd9ea358532daa440fdd65264c687be4 /src/core/wee-hook.c
parentb5730ec025f680fd8c5331d8e813cfbf38330303 (diff)
downloadweechat-f126daa896f18c25f8c4d4d9c24b33cdab2bed4e.zip
Fix option irc.network.away_check
Diffstat (limited to 'src/core/wee-hook.c')
-rw-r--r--src/core/wee-hook.c3
1 files changed, 3 insertions, 0 deletions
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;