Fix a segfault occuring when opening some collection files.
authorLaurent Monin <geeqie@norz.org>
Sun, 13 Jul 2008 12:36:18 +0000 (12:36 +0000)
committerLaurent Monin <geeqie@norz.org>
Sun, 13 Jul 2008 12:36:18 +0000 (12:36 +0000)
Skip all lines not starting with a # when only geometry is required.

src/collect-io.c

index bb40a25..fd84f33 100644 (file)
@@ -146,6 +146,8 @@ static gint collection_load_private(CollectionData *cd, const gchar *path, Colle
                        continue;
                        }
 
+               if (only_geometry) continue;
+
                /* Read filenames */
                buf = quoted_value(p, NULL);
                if (buf)