changeset 20567:b4a141f9294a

don't show empty "Status: " anymore, which fixes a glib runtime warning
author Ka-Hing Cheung <khc@hxbc.us>
date Thu, 20 Sep 2007 05:28:33 +0000
parents 3ef40e8de6ab
children 5b35273d145f
files libpurple/protocols/msn/msn.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/msn.c	Thu Sep 20 03:05:54 2007 +0000
+++ b/libpurple/protocols/msn/msn.c	Thu Sep 20 05:28:33 2007 +0000
@@ -598,9 +598,11 @@
 
 			g_free(tmp2);
 		} else {
-			tmp = g_markup_escape_text(psm, -1);
-			purple_notify_user_info_add_pair(user_info, _("Status"), tmp);
-			g_free(tmp);
+			if (psm != NULL && *psm) {
+				tmp = g_markup_escape_text(psm, -1);
+				purple_notify_user_info_add_pair(user_info, _("Status"), tmp);
+				g_free(tmp);
+			}
 		}
 
 		if (currentmedia) {