resname can be a null pointer in sme cases
authorMikael Berthe <mikael@lilotux.net>
Mon, 03 Oct 2005 23:59:56 +0200
changeset 479 b82428ac107d
parent 478 47cfa3779549
child 480 882e1acae422
resname can be a null pointer in sme cases
mcabber/src/hooks.c
--- a/mcabber/src/hooks.c	Mon Oct 03 22:12:24 2005 +0200
+++ b/mcabber/src/hooks.c	Mon Oct 03 23:59:56 2005 +0200
@@ -73,6 +73,7 @@
 
   if (!is_groupchat && is_room) {
     // This is a private message from a room participant
+    if (!resname) resname = "";
     wmsg = bmsg = g_strdup_printf("PRIV#<%s> %s", resname, msg);
   }