From 278f2b37077c0a859c946771386f2269783f42dd Mon Sep 17 00:00:00 2001 From: Tony Olagbaiye Date: Wed, 11 Aug 2021 22:07:47 +0100 Subject: [PATCH] fix segfault timer --- account.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account.c b/account.c index d6a449e..638765d 100644 --- a/account.c +++ b/account.c @@ -693,7 +693,7 @@ int account__timer_cb(const void *pointer, void *data, int remaining_calls) struct t_account *ptr_account; for (ptr_account = accounts; ptr_account; - ptr_account = ptr_account->next_account) + ptr_account = ptr_account ? ptr_account->next_account : NULL) { if (ptr_account->is_connected && (xmpp_conn_is_connecting(ptr_account->connection)