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)
committerKlaus Ethgen <Klaus@Ethgen.de>
Sat, 3 Sep 2011 19:40:07 +0000 (20:40 +0100)
commit5f29231b525166cf2a4a63c1872f3d27e8f1e413
tree0672ba8e77dcda4989f41db75348e0aae5597f55
parentdc8933e3c0ae3e0021d13beb666d6729267c7624
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