changeset 2267:63a479808748

Tune some debug info
author Klaus Ethgen <Klaus@Ethgen.de>
date Thu, 25 Feb 2016 16:46:32 +0100
parents 451165c18b34
children 649f2c4bbfed
files src/collect-io.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/collect-io.c	Wed Feb 24 08:32:54 2016 +0100
+++ b/src/collect-io.c	Thu Feb 25 16:46:32 2016 +0100
@@ -91,11 +91,12 @@
 
 	if (!path) path = cd->path;
 
+	pathl = path_from_utf8(path);
+
 	DEBUG_1("collection load: append=%d flush=%d only_geometry=%d path=%s",
-			  append, flush, only_geometry, path);
+			  append, flush, only_geometry, pathl);
 
 	/* load it */
-	pathl = path_from_utf8(path);
 	f = fopen(pathl, "r");
 	g_free(pathl);
 	if (!f)
@@ -148,6 +149,7 @@
 		if (only_geometry) continue;
 
 		/* Read filenames */
+		/* TODO: This is not safe! */
 		while (*p && *p != '"') p++;
 		if (*p) p++;
 		buf = p;