mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-08 19:34:14 -04:00
Merge pull request #85 from pasis/dev
prevent double free of jabber_conn.status
This commit is contained in:
commit
430c9ad060
@ -313,8 +313,10 @@ jabber_update_presence(jabber_presence_t status, const char * const msg)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (jabber_conn.status != NULL)
|
if (jabber_conn.status != NULL) {
|
||||||
free(jabber_conn.status);
|
free(jabber_conn.status);
|
||||||
|
jabber_conn.status = NULL;
|
||||||
|
}
|
||||||
if (msg != NULL)
|
if (msg != NULL)
|
||||||
jabber_conn.status = strdup(msg);
|
jabber_conn.status = strdup(msg);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user