# HG changeset patch # User nenolod # Date 1144865230 25200 # Node ID 25963e82c40f88f4952c139bc636c7773674f873 # Parent 5ef13028e42dddc69b2f943eb159431d31daa722 [svn] - konqueror hack was breaking standards here, fix a crash diff -r 5ef13028e42d -r 25963e82c40f audacious/mainwin.c --- a/audacious/mainwin.c Tue Apr 11 14:33:16 2006 -0700 +++ b/audacious/mainwin.c Wed Apr 12 11:07:10 2006 -0700 @@ -1901,10 +1901,13 @@ return; } - iter = sourcelist = g_strsplit((gchar *)(selection_data->data),"\r\n",-1); + iter = sourcelist = g_strsplit((gchar *)(selection_data->data),"\n",-1); for (path = *sourcelist; *path; path = *(++sourcelist)) { + if (path == NULL) /* damn konqueror */ + break; + if (str_has_prefix_nocase(path, "fonts:///")) { path += 8; @@ -1934,9 +1937,6 @@ } playlist_add_url(path); } - - if (path == NULL) /* damn konqueror */ - break; } g_strfreev(iter);