changeset 479:b82428ac107d

resname can be a null pointer in sme cases
author Mikael Berthe <mikael@lilotux.net>
date Mon, 03 Oct 2005 23:59:56 +0200
parents 47cfa3779549
children 882e1acae422
files mcabber/src/hooks.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
   }