changeset 358:70075730e187 trunk

[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.
author nenolod
date Fri, 30 Dec 2005 14:17:35 -0800
parents 115d00db8fb3
children 8df427a314a8
files audacious/mainwin.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);