diff src/collect-io.c @ 1327:15208b140481

quoted_value is no longer needed
author nadvornik
date Thu, 26 Feb 2009 08:04:52 +0000
parents 8b89e3ff286b
children 79937bc55f3a
line wrap: on
line diff
--- a/src/collect-io.c	Wed Feb 25 23:04:08 2009 +0000
+++ b/src/collect-io.c	Thu Feb 26 08:04:52 2009 +0000
@@ -148,8 +148,12 @@
 		if (only_geometry) continue;
 
 		/* Read filenames */
-		buf = quoted_value(p, NULL);
-		if (buf)
+		while (*p && *p != '"') p++;
+		if (*p) p++;
+		buf = p;
+		while (*p && *p != '"') p++;
+		*p = 0;
+		if (*buf)
 			{
 			gint valid;
 
@@ -158,7 +162,6 @@
 
 			valid = (buf[0] == G_DIR_SEPARATOR && collection_add_check(cd, file_data_new_simple(buf), FALSE, TRUE));
 			if (!valid) DEBUG_1("collection invalid file: %s", buf);
-			g_free(buf);
 
 			total++;
 			if (!valid)