1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-29 19:56:07 -04:00

jabber.c: use FREE_SET_NULL macro

This commit is contained in:
Dmitry Podgorny 2013-01-12 21:31:12 +02:00
parent d7b969b135
commit 70f5ad2206

View File

@ -106,9 +106,7 @@ jabber_restart(void)
{
jabber_conn.conn_status = JABBER_STARTED;
jabber_conn.presence = PRESENCE_OFFLINE;
if (jabber_conn.status != NULL)
free(jabber_conn.status);
jabber_conn.status = NULL;
FREE_SET_NULL(jabber_conn.status);
}
jabber_conn_status_t