diff options
author | Dmitry Podgorny <pasis.ua@gmail.com> | 2013-01-12 21:31:12 +0200 |
---|---|---|
committer | Dmitry Podgorny <pasis.ua@gmail.com> | 2013-01-12 21:31:12 +0200 |
commit | 70f5ad220684e4d3ba1e07d194905f32b0290073 (patch) | |
tree | a906b83d2a85843c7588d0902f72e025f40ebb85 /src | |
parent | d7b969b1354ed69b4080b5258130ac61d0714d67 (diff) | |
download | profani-tty-70f5ad220684e4d3ba1e07d194905f32b0290073.tar.gz |
jabber.c: use FREE_SET_NULL macro
Diffstat (limited to 'src')
-rw-r--r-- | src/jabber.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/jabber.c b/src/jabber.c index 8b60a837..42f6a427 100644 --- a/src/jabber.c +++ b/src/jabber.c @@ -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 |