diff options
author | James Booth <boothj5@gmail.com> | 2015-05-04 23:29:24 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-05-04 23:29:24 +0100 |
commit | 0930f0f688bc9784b66f8531c4337eaa1106b92a (patch) | |
tree | 32a6e999c4f8f70ee90da1073f3f1e1287e2fe01 | |
parent | 41724218c0ca8be94906001f22c87af423e8540c (diff) | |
download | profani-tty-0930f0f688bc9784b66f8531c4337eaa1106b92a.tar.gz |
Use null check convention in profanity.c
-rw-r--r-- | src/profanity.c | 4 |
1 files 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); } } |