changeset 2232:032e215fe904

Fix for the assertion when file gives an empty lookup Thanks Leon for this patch.
author Leon Winter <winter@bfw-online.de>
date Mon, 26 May 2014 23:33:52 +0100
parents 3d30b9ebe715
children 87ed572f1eea
files src/filedata.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/filedata.c	Tue Mar 04 00:31:04 2014 +0100
+++ b/src/filedata.c	Mon May 26 23:33:52 2014 +0100
@@ -1150,7 +1150,7 @@
 	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);