From 539d4e3860c78302aa6778179bce1f45d6f11454 Mon Sep 17 00:00:00 2001 From: Klaus Ethgen Date: Thu, 25 Feb 2016 16:46:32 +0100 Subject: [PATCH] Tune some debug info --- src/collect-io.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/collect-io.c b/src/collect-io.c index 7859bfd4..aab9c52e 100644 --- a/src/collect-io.c +++ b/src/collect-io.c @@ -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; -- 2.20.1