summaryrefslogtreecommitdiff
path: root/src/filelist.c
diff options
context:
space:
mode:
authorDennis Real <github@tildepipe.org>2012-02-05 16:56:29 +0100
committerDennis Real <github@tildepipe.org>2012-02-05 16:56:29 +0100
commit132ecc0f9f0a2243c4f6745d0af36be810bf9eba (patch)
tree261a213cda215ceb59c8ffad2b2bd5ecd9a41796 /src/filelist.c
parent0d7602ffa3ef7d610c2af355258e8fe40ad84b8f (diff)
- improved handling of images which have exif tags but not ours
- fixed uninitialzed pointer in thumbnail mode - added nikon lens info if available
Diffstat (limited to 'src/filelist.c')
-rw-r--r--src/filelist.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/filelist.c b/src/filelist.c
index 32bc2a5..9756c27 100644
--- a/src/filelist.c
+++ b/src/filelist.c
@@ -54,6 +54,9 @@ feh_file *feh_file_new(char *filename)
else
newfile->name = estrdup(filename);
newfile->info = NULL;
+#ifdef HAVE_LIBEXIF
+ newfile->ed = NULL;
+#endif
return(newfile);
}
@@ -70,7 +73,7 @@ void feh_file_free(feh_file * file)
if (file->info)
feh_file_info_free(file->info);
#ifdef HAVE_LIBEXIF
- if (file->info)
+ if (file->ed)
exif_data_unref(file->ed);
#endif
free(file);