If we get a NULL exifdata, don't try to dereference it. Fixes BGO #530851.

2008-05-03  Hans Petter Jansson  <hpj@novell.com>

	* src/nautilus-image-properties-page.c (append_exifdata_string):
	If we get a NULL exifdata, don't try to dereference it. Fixes
	BGO #530851.

svn path=/trunk/; revision=14129
This commit is contained in:
Hans Petter Jansson 2008-05-03 23:59:23 +00:00 committed by Hans Petter
parent b2b0b4bae3
commit 12d248d565
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2008-05-03 Hans Petter Jansson <hpj@novell.com>
* src/nautilus-image-properties-page.c (append_exifdata_string):
If we get a NULL exifdata, don't try to dereference it. Fixes
BGO #530851.
2008-05-03 Christian Neumair <cneumair@gnome.org>
* src/nautilus-file-management-properties.glade:

View file

@ -228,7 +228,7 @@ append_tag_value_pair (GString *string,
static void
append_exifdata_string (ExifData *exifdata, GString *string)
{
if (exifdata->ifd[0] && exifdata->ifd[0]->count) {
if (exifdata && exifdata->ifd[0] && exifdata->ifd[0]->count) {
append_tag_value_pair (string, exifdata, EXIF_TAG_MAKE, _("Camera Brand"));
append_tag_value_pair (string, exifdata, EXIF_TAG_MODEL, _("Camera Model"));