diff src/exif.c @ 1798:1cff176f8144

fixed segfault in exif parser http://sourceforge.net/tracker/index.php?func=detail&aid=2950617&group_id=222125&atid=1054682
author nadvornik
date Sun, 14 Feb 2010 22:00:23 +0000
parents 219e1ba3ae30
children 956aab097ea7
line wrap: on
line diff
--- a/src/exif.c	Sun Feb 14 21:35:11 2010 +0000
+++ b/src/exif.c	Sun Feb 14 22:00:23 2010 +0000
@@ -1458,6 +1458,7 @@
 gint exif_item_get_integer(ExifItem *item, gint *value)
 {
 	if (!item) return FALSE;
+	if (!item->elements) return FALSE;
 
 	switch (item->format)
 		{