Permalink
Browse files

CVS update: v1.9 of src/core/xep/muc-events.c (fixes segfault on empt…

…y messages)
  • Loading branch information...
1 parent 95c7b3c commit 63ef43024911fc49d42377596e671517dc850f4b @cdidier cdidier committed with Mar 19, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/xep/muc-events.c
@@ -1,5 +1,5 @@
/*
- * $Id: muc-events.c,v 1.8 2008/12/08 10:06:50 cdidier Exp $
+ * $Id: muc-events.c,v 1.9 2009/03/19 11:32:44 cdidier Exp $
*
* Copyright (C) 2007 Colin DIDIER
*
@@ -475,7 +475,7 @@ sig_recv_message(XMPP_SERVER_REC *server, LmMessage *lmsg, const int type,
g_free(str);
}
node = lm_message_node_get_child(lmsg->node, "body");
- if (node != NULL && nick != NULL) {
+ if (node != NULL && node->value != NULL && nick != NULL) {
str = xmpp_recode_in(node->value);
own = strcmp(nick, channel->nick) == 0;
action = g_ascii_strncasecmp(str, "/me ", 4) == 0;

0 comments on commit 63ef430

Please sign in to comment.