mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Use null check convention in profanity.c
This commit is contained in:
parent
41724218c0
commit
0930f0f688
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user