Skip to content

Commit

Permalink
Fix a segfault occuring when using --without-exiv2 and
Browse files Browse the repository at this point in the history
concerning exif stuff.
  • Loading branch information
Laurent Monin committed Apr 3, 2008
1 parent c34caea commit 94fe3fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/exif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down

0 comments on commit 94fe3fc

Please sign in to comment.