projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c34caea
)
Fix a segfault occuring when using --without-exiv2 and
author
Laurent Monin
<geeqie@norz.org>
Thu, 3 Apr 2008 21:50:53 +0000
(21:50 +0000)
committer
Laurent Monin
<geeqie@norz.org>
Thu, 3 Apr 2008 21:50:53 +0000
(21:50 +0000)
concerning exif stuff.
src/exif.c
patch
|
blob
|
history
diff --git
a/src/exif.c
b/src/exif.c
index
bf5b177
..
8969f40
100644
(file)
--- a/
src/exif.c
+++ b/
src/exif.c
@@
-538,11
+538,13
@@
char *exif_item_get_tag_name(ExifItem *item)
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
@@
char *exif_item_get_data(ExifItem *item, guint *data_len)
guint exif_item_get_format_id(ExifItem *item)
{
+ if (!item) return EXIF_FORMAT_UNKNOWN;
return item->format;
}