mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Use null check convention in chat_session.c
This commit is contained in:
parent
c487fe5f77
commit
49e450767d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user