# HG changeset patch # User zas_ # Date 1207259453 0 # Node ID 59eac206309386274568ef79b217df176ed2966b # Parent cdec56e38dd1f62ade0fcf6b8e70e6604bb9abd9 Fix a segfault occuring when using --without-exiv2 and concerning exif stuff. diff -r cdec56e38dd1 -r 59eac2063093 src/exif.c --- a/src/exif.c Thu Apr 03 21:49:17 2008 +0000 +++ b/src/exif.c Thu Apr 03 21:50:53 2008 +0000 @@ -538,11 +538,13 @@ guint exif_item_get_tag_id(ExifItem *item) { + if (!item) return 0; return item->tag; } guint exif_item_get_elements(ExifItem *item) { + if (!item) return 0; return item->elements; } @@ -555,6 +557,7 @@ guint exif_item_get_format_id(ExifItem *item) { + if (!item) return EXIF_FORMAT_UNKNOWN; return item->format; }