From: Leon Winter Date: Mon, 26 May 2014 22:33:52 +0000 (+0100) Subject: Fix for the assertion when file gives an empty lookup X-Git-Tag: v1.2~3 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=900e65e7e83060b5a4fa0b4b6a2a38d747fbec2c Fix for the assertion when file gives an empty lookup Thanks Leon for this patch. --- diff --git a/src/filedata.c b/src/filedata.c index e0d70f00..15e20173 100644 --- a/src/filedata.c +++ b/src/filedata.c @@ -1150,7 +1150,7 @@ FileData *file_data_new_group(const gchar *path_utf8) filelist_read_real(dir, &files, NULL, TRUE); fd = g_hash_table_lookup(file_data_pool, path_utf8); - g_assert(fd); + if (!fd) fd = file_data_new(path_utf8, &st, TRUE); file_data_ref(fd); filelist_free(files);