Mercurial > audlegacy-plugins
changeset 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 | dc0d35d888d2 |
children | e0d131145768 |
files | ChangeLog src/xspf/xspf.c |
diffstat | 2 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Feb 13 05:55:00 2007 -0800 +++ b/ChangeLog Tue Feb 13 21:50:01 2007 -0800 @@ -1,3 +1,12 @@ +2007-02-13 13:55:00 +0000 Yoshiki Yazawa <yaz@cc.rim.or.jp> + revision [1372] + - switch from pseudo delete tag call back to genuine one. + + trunk/src/madplug/TODO | 2 - + trunk/src/madplug/fileinfo.c | 44 ------------------------------------------- + 2 files changed, 1 insertion(+), 45 deletions(-) + + 2007-02-13 05:58:47 +0000 Yoshiki Yazawa <yaz@cc.rim.or.jp> revision [1370] - remove a debug output.
--- 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))