Mercurial > audlegacy-plugins
diff src/xspf/xspf.c @ 644:94ab06db73fa trunk
[svn] temporary fix for SIGSEGV in g_utf8_validate() when xmlURIEscape returns NULL.
thank nhjm449 for reporting.
author | yaz |
---|---|
date | Tue, 13 Feb 2007 21:50:01 -0800 |
parents | 2605c5515bab |
children | f684905cf688 |
line wrap: on
line diff
--- a/src/xspf/xspf.c Tue Feb 13 05:55:00 2007 -0800 +++ b/src/xspf/xspf.c Tue Feb 13 21:50:01 2007 -0800 @@ -286,7 +286,9 @@ g_free(tmp); } else { /* streaming */ - filename = (gchar *)xmlURIEscape((xmlChar *)entry->filename); + gchar *tmp = (gchar *)xmlURIEscape((xmlChar *)entry->filename); + filename = g_strdup(tmp ? tmp : entry->filename); + g_free(tmp); } if(!g_utf8_validate(filename, -1, NULL))