1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Use null check convention in profanity.c

This commit is contained in:
James Booth 2015-05-04 23:29:24 +01:00
parent 41724218c0
commit 0930f0f688

View File

@ -112,14 +112,14 @@ prof_handle_idle(void)
GSList *recipients = ui_get_chat_recipients(); GSList *recipients = ui_get_chat_recipients();
GSList *curr = recipients; GSList *curr = recipients;
while (curr != NULL) { while (curr) {
char *barejid = curr->data; char *barejid = curr->data;
ProfChatWin *chatwin = wins_get_chat(barejid); ProfChatWin *chatwin = wins_get_chat(barejid);
chat_state_handle_idle(chatwin->barejid, chatwin->state); chat_state_handle_idle(chatwin->barejid, chatwin->state);
curr = g_slist_next(curr); curr = g_slist_next(curr);
} }
if (recipients != NULL) { if (recipients) {
g_slist_free(recipients); g_slist_free(recipients);
} }
} }