Tune some debug info
authorKlaus Ethgen <Klaus@Ethgen.de>
Thu, 25 Feb 2016 15:46:32 +0000 (16:46 +0100)
committerKlaus Ethgen <Klaus@Ethgen.de>
Thu, 25 Feb 2016 15:46:32 +0000 (16:46 +0100)
src/collect-io.c

index 7859bfd..aab9c52 100644 (file)
@@ -91,11 +91,12 @@ static gboolean collection_load_private(CollectionData *cd, const gchar *path, C
 
        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 @@ static gboolean collection_load_private(CollectionData *cd, const gchar *path, C
                if (only_geometry) continue;
 
                /* Read filenames */
+               /* TODO: This is not safe! */
                while (*p && *p != '"') p++;
                if (*p) p++;
                buf = p;