# HG changeset patch # User Sadrul Habib Chowdhury # Date 1200108275 0 # Node ID 9bddfb6df976e96100fa1233b05fb5a359f01aca # Parent d6f174c2a83e9c14b11f5d4ad8135c15a8b51a17# Parent 83613550512b712729fff13a22e30088140ab14a merge of '3dc120bb73d0a2d3ce3f6339e0882bd0321e24c8' and 'ec4fc775c7d333800b4229a7484b2f6f61c7c1a1' diff -r d6f174c2a83e -r 9bddfb6df976 libpurple/util.c --- a/libpurple/util.c Sat Jan 12 02:24:51 2008 +0000 +++ b/libpurple/util.c Sat Jan 12 03:24:35 2008 +0000 @@ -4659,7 +4659,7 @@ GString *string; char *esc; - if (!title) + if (!title || !*title) return NULL; esc = g_markup_escape_text(title, -1); @@ -4667,13 +4667,13 @@ g_string_append_printf(string, "%s", esc); g_free(esc); - if (artist) { + if (artist && *artist) { esc = g_markup_escape_text(artist, -1); g_string_append_printf(string, _(" - %s"), esc); g_free(esc); } - if (album) { + if (album && *album) { esc = g_markup_escape_text(album, -1); g_string_append_printf(string, _(" (%s)"), esc); g_free(esc);