From a7ca1b739b798ebc82771f759d50b805074156eb Mon Sep 17 00:00:00 2001 From: o9000 Date: Wed, 27 Dec 2017 21:15:12 +0100 Subject: [PATCH] Workaround broken timer code (SIGSEGV on recent gcc) --- src/util/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/timer.c b/src/util/timer.c index 03a6f84..642df7e 100644 --- a/src/util/timer.c +++ b/src/util/timer.c @@ -392,7 +392,7 @@ void callback_multi_timeout(void *arg) while (it) { GSList *next = it->next; timeout *t = it->data; - if (++t->multi_timeout->current_count >= t->multi_timeout->count_to_expiration) { + if (t->multi_timeout && ++t->multi_timeout->current_count >= t->multi_timeout->count_to_expiration) { t->_callback(t->arg); if (multi_timeouts && g_hash_table_lookup(multi_timeouts, t)) { // Timer still exists