nautilus/nautilus-bnc376070-null-exifdata-crash.patch

14 lines
834 B
Diff

diff -upr nautilus-2.22.2-pre/src/nautilus-image-properties-page.c nautilus-2.22.2-post/src/nautilus-image-properties-page.c
--- nautilus-2.22.2-pre/src/nautilus-image-properties-page.c 2008-03-29 03:40:25.000000000 -0600
+++ nautilus-2.22.2-post/src/nautilus-image-properties-page.c 2008-05-01 01:17:45.000000000 -0500
@@ -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"));
Only in nautilus-2.22.2-post/src: nautilus-image-properties-page.c~