Mon, 03 Dec 2007 21:26:54 +0000
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.)
| pidgin/gtkblist.c | file | annotate | diff | comparison | revisions |
--- 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("<span weight='bold'>%s</span>%s", esc, group_count); + mark = g_strdup_printf("<span weight='bold'>%s</span>%s", esc ? esc : "", group_count); else mark = g_strdup_printf("<span color='#%02x%02x%02x' weight='bold'>%s</span>%s", textcolor.red>>8, textcolor.green>>8, textcolor.blue>>8, - esc, group_count); + esc ? esc : "", group_count); g_free(esc); return mark;