diff options
author | James Booth <boothj5@gmail.com> | 2015-05-04 23:24:37 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-05-04 23:24:37 +0100 |
commit | 49e450767db2c9d025fe124b824226849bb2bea1 (patch) | |
tree | f64f56ee60de4985348d4ab7f69741337af9a23e | |
parent | c487fe5f77e6bc0f11b63714d14e62e986eaa3ee (diff) | |
download | profani-tty-49e450767db2c9d025fe124b824226849bb2bea1.tar.gz |
Use null check convention in chat_session.c
-rw-r--r-- | src/chat_session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chat_session.c b/src/chat_session.c index 8ce2e437..2758d603 100644 --- a/src/chat_session.c +++ b/src/chat_session.c @@ -64,7 +64,7 @@ _chat_session_new(const char * const barejid, const char * const resource, static void _chat_session_free(ChatSession *session) { - if (session != NULL) { + if (session) { free(session->barejid); free(session->resource); free(session); @@ -81,7 +81,7 @@ chat_sessions_init(void) void chat_sessions_clear(void) { - if (sessions != NULL) + if (sessions) g_hash_table_remove_all(sessions); } |