changeset 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 203404cc8e98
children b85ff7951483
files src/exif.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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)
 		{