# HG changeset patch # User nenolod # Date 1135981055 28800 # Node ID 70075730e18709c742772ed53686a1f0cc4204c5 # Parent 115d00db8fb38de8e5c76f365de1a30ccfb02123 [svn] Checking path for NULL wont work in the for() loop, so we have to check elsewhere. It'd be nice if file managers would all obey the same standard. diff -r 115d00db8fb3 -r 70075730e187 audacious/mainwin.c --- a/audacious/mainwin.c Fri Dec 30 13:52:14 2005 -0800 +++ b/audacious/mainwin.c Fri Dec 30 14:17:35 2005 -0800 @@ -1821,7 +1821,7 @@ iter = sourcelist = g_strsplit((gchar *)(selection_data->data),"\r\n",-1); - for (path = *sourcelist; path, *path; path = *(++sourcelist)) + for (path = *sourcelist; *path; path = *(++sourcelist)) { if (str_has_prefix_nocase(path, "fonts:///")) { @@ -1852,6 +1852,9 @@ } playlist_add_url(path); } + + if (path == NULL) /* damn konqueror */ + break; } g_strfreev(iter);