From: Klaus Ethgen Date: Thu, 25 Feb 2016 15:46:32 +0000 (+0100) Subject: Tune some debug info X-Git-Tag: v1.3~69 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=539d4e3860c78302aa6778179bce1f45d6f11454 Tune some debug info --- 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;