1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

prevent double free of jabber_conn.status

This commit is contained in:
Dmitry Podgorny 2012-11-18 01:46:45 +02:00
parent 2fe5e7bd59
commit 55c99c5cc6

View File

@ -313,8 +313,10 @@ jabber_update_presence(jabber_presence_t status, const char * const msg)
break;
}
if (jabber_conn.status != NULL)
if (jabber_conn.status != NULL) {
free(jabber_conn.status);
jabber_conn.status = NULL;
}
if (msg != NULL)
jabber_conn.status = strdup(msg);