Mercurial > pidgin.yaz
diff libpurple/protocols/msn/msn.c @ 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 | 11d09a5f7b46 |
children | 5913725cbcd6 591267f6f1d5 39737dfe1cca 13ab08434a50 |
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) {