From af8421fa47835455ad0be0bd376e9c9114069c6b Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Mon, 18 Jan 2010 21:57:51 +0100 Subject: [PATCH] Crash fix. --- src/util/timeout.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/timeout.c b/src/util/timeout.c index 0dee736..3cb7c98 100644 --- a/src/util/timeout.c +++ b/src/util/timeout.c @@ -36,6 +36,7 @@ void timeout_evt_reset(struct timeout_evt* t) int timeout_evt_is_scheduled(struct timeout_evt* t) { + if (!t) return 0; return !!t->prev; }