1
0
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:
Michael Vetter 2019-06-21 15:49:25 +02:00 committed by GitHub
commit ff46703073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -798,7 +798,9 @@ _handle_groupchat(xmpp_stanza_t *const stanza)
ProfMessage *message = message_init();
message->jid = jid;
message->id = strdup(id);
if (id) {
message->id = strdup(id);
}
message->body = xmpp_message_get_body(stanza);