fixed bug in cache handling
[geeqie.git] / src / exif-common.c
index fbc4199..93a8f8c 100644 (file)
@@ -652,6 +652,7 @@ ExifData *exif_read_fd(FileData *fd)
        if (!fd || !is_readable_file(fd->path)) return NULL;
        
        if (file_cache_get(exif_cache, fd)) return fd->exif;
+       g_assert(fd->exif == NULL);
        
        /* CACHE_TYPE_XMP_METADATA file should exist only if the metadata are
         * not writable directly, thus it should contain the most up-to-date version */