diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-06-16 14:25:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 14:25:50 +0200 |
commit | cffce4de8a28f3b4d929f7fcbf22882dca5a1e59 (patch) | |
tree | c3f04eb4cb5eae00ad98fb1bd60a0962db2098f4 | |
parent | 5d5acd65b1ff4417b7f28b1c93af8734b9d0c5d8 (diff) | |
parent | 409bbd6f2df10d327decbfbbd86be1909e991d58 (diff) | |
download | profani-tty-cffce4de8a28f3b4d929f7fcbf22882dca5a1e59.tar.gz |
Merge pull request #1365 from profanity-im/segfault
Fix possible segfault in xmpp/message.c
-rw-r--r-- | src/xmpp/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c index b668ce84..d578786e 100644 --- a/src/xmpp/message.c +++ b/src/xmpp/message.c @@ -1169,7 +1169,7 @@ _handle_chat(xmpp_stanza_t *const stanza, gboolean is_mam) { // ignore if type not chat or absent const char *type = xmpp_stanza_get_type(stanza); - if (!(g_strcmp0(type, "chat") == 0 || type == NULL)) { + if (type == NULL || g_strcmp0(type, STANZA_TYPE_CHAT) != 0) { return; } |