Skip to content

Commit

Permalink
Tune some debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
mowgli committed Feb 25, 2016
1 parent 67ba186 commit 539d4e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/collect-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 539d4e3

Please sign in to comment.