From: Hubert Figuière Date: Fri, 11 May 2007 02:59:57 +0000 (-0400) Subject: don't dereference NULL (CID 4) X-Git-Tag: libexif-0_6_21-release~396 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60424c5968654b72feb910f076770a6eef342fd4;p=platform%2Fupstream%2Flibexif.git don't dereference NULL (CID 4) --- diff --git a/libexif/exif-data.c b/libexif/exif-data.c index d7101c5..6b6f27c 100644 --- a/libexif/exif-data.c +++ b/libexif/exif-data.c @@ -193,7 +193,13 @@ exif_data_load_data_entry (ExifData *data, ExifEntry *entry, /* If this is the MakerNote, remember the offset */ if (entry->tag == EXIF_TAG_MAKER_NOTE) { - if (entry->size > 6) exif_log (data->priv->log, + if (entry->data) { + exif_log (data->priv->log, + EXIF_LOG_CODE_DEBUG, "ExifData", + "MakerNote found with NULL data"); + } + else if (entry->size > 6) + exif_log (data->priv->log, EXIF_LOG_CODE_DEBUG, "ExifData", "MakerNote found (%02x %02x %02x %02x " "%02x %02x %02x...).",