mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Merge pull request #1133 from paulfariello/hotfix/missing_message_id_segfault
Fix segfault when receiving messages without ID
This commit is contained in:
commit
ff46703073
@ -798,7 +798,9 @@ _handle_groupchat(xmpp_stanza_t *const stanza)
|
|||||||
|
|
||||||
ProfMessage *message = message_init();
|
ProfMessage *message = message_init();
|
||||||
message->jid = jid;
|
message->jid = jid;
|
||||||
message->id = strdup(id);
|
if (id) {
|
||||||
|
message->id = strdup(id);
|
||||||
|
}
|
||||||
|
|
||||||
message->body = xmpp_message_get_body(stanza);
|
message->body = xmpp_message_get_body(stanza);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user