changeset 13785:10f702a4d3dc

[gaim-migrate @ 16197] more jabber status message escape goodness committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 24 May 2006 17:38:42 +0000
parents 3c11054a3b80
children 5ddde4ad1ca2
files src/protocols/jabber/buddy.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/jabber/buddy.c	Wed May 24 00:39:15 2006 +0000
+++ b/src/protocols/jabber/buddy.c	Wed May 24 17:38:42 2006 +0000
@@ -110,7 +110,10 @@
 	jbr->state = state;
 	if(jbr->status)
 		g_free(jbr->status);
-	jbr->status = g_markup_escape_text(status, -1);
+        if (status)
+		jbr->status = g_markup_escape_text(status, -1);
+	else
+		jbr->status = NULL;
 
 	return jbr;
 }