From 0930f0f688bc9784b66f8531c4337eaa1106b92a Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 4 May 2015 23:29:24 +0100 Subject: [PATCH] Use null check convention in profanity.c --- src/profanity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/profanity.c b/src/profanity.c index 6a2966dd..4330b718 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -112,14 +112,14 @@ prof_handle_idle(void) GSList *recipients = ui_get_chat_recipients(); GSList *curr = recipients; - while (curr != NULL) { + while (curr) { char *barejid = curr->data; ProfChatWin *chatwin = wins_get_chat(barejid); chat_state_handle_idle(chatwin->barejid, chatwin->state); curr = g_slist_next(curr); } - if (recipients != NULL) { + if (recipients) { g_slist_free(recipients); } }