Fix bug 3006812: ensure exif cache is initialized even when all files are unreadable.
authorLaurent Monin <geeqie@norz.org>
Thu, 16 Dec 2010 21:26:36 +0000 (22:26 +0100)
committerVladimir Nadvornik <nadvornik@suse.cz>
Tue, 27 Sep 2011 12:19:02 +0000 (14:19 +0200)
commit8a55b69211b5866025f66c514f34ad697d3d1909
treeb8b4694249802326f880d6d1c4569af58a1d28c3
parent138e31f328408ac88f1162999c8fcb24298ab37a
Fix bug 3006812: ensure exif cache is initialized even when all files are unreadable.

Add a new function exif_init_cache() and call it at top of exif_read_fd(),
the issue was caused by a return NULL on unreadable file, before initializinf exif_cache
and when exif_free_fd() is called, file_cache_put() was called on invalid cache.
src/exif-common.c