Mercurial > geeqie
changeset 1718:f6ba63c3bb04
fixed possible crash in exif_item_get_integer
author | nadvornik |
---|---|
date | Tue, 18 Aug 2009 20:19:23 +0000 |
parents | 06fa126afada |
children | 192d4752fd06 |
files | src/exiv2.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/exiv2.cc Mon Aug 03 20:47:14 2009 +0000 +++ b/src/exiv2.cc Tue Aug 18 20:19:23 2009 +0000 @@ -797,7 +797,7 @@ gint exif_item_get_integer(ExifItem *item, gint *value) { try { - if (!item) return 0; + if (!item || exif_item_get_elements(item) == 0) return 0; *value = ((Exiv2::Metadatum *)item)->toLong(); return 1; }