# HG changeset patch # User Daniel Atallah # Date 1196717214 0 # Node ID 7632edbf0d00dd04e790762c367999290c150c3a # Parent fb8ab2490ac406941f67918cef0205f195f2c3de Fix #4229 by not crashing when there is an invalid group name. There is probably a bug elsewhere that causes this (I'm guessing with the ICQ encoding or something.) diff -r fb8ab2490ac4 -r 7632edbf0d00 pidgin/gtkblist.c --- a/pidgin/gtkblist.c Mon Dec 03 19:02:28 2007 +0000 +++ b/pidgin/gtkblist.c Mon Dec 03 21:26:54 2007 +0000 @@ -5715,11 +5715,11 @@ esc = g_markup_escape_text(group->name, -1); if (selected) - mark = g_strdup_printf("%s%s", esc, group_count); + mark = g_strdup_printf("%s%s", esc ? esc : "", group_count); else mark = g_strdup_printf("%s%s", textcolor.red>>8, textcolor.green>>8, textcolor.blue>>8, - esc, group_count); + esc ? esc : "", group_count); g_free(esc); return mark;