nautilus r14130 - in branches/gnome-2-22: . src



Author: hansp
Date: Sun May  4 00:05:12 2008
New Revision: 14130
URL: http://svn.gnome.org/viewvc/nautilus?rev=14130&view=rev

Log:
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.



Modified:
   branches/gnome-2-22/ChangeLog
   branches/gnome-2-22/src/nautilus-image-properties-page.c

Modified: branches/gnome-2-22/src/nautilus-image-properties-page.c
==============================================================================
--- branches/gnome-2-22/src/nautilus-image-properties-page.c	(original)
+++ branches/gnome-2-22/src/nautilus-image-properties-page.c	Sun May  4 00:05:12 2008
@@ -228,7 +228,7 @@
 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"));
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]