[eog-plugins] [exif-display] Pre-init conditionally used pointers on stack



commit 7d5ff9bdcb7836cc9f279c2ee39b1c37bde162d7
Author: Felix Riemann <friemann gnome org>
Date:   Tue Sep 22 23:08:23 2009 +0200

    [exif-display] Pre-init conditionally used pointers on stack
    
    This is to avoid problems in case the stack is not clean.
    Backported from eog.

 plugins/exif-display/eog-exif-display-plugin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/exif-display/eog-exif-display-plugin.c b/plugins/exif-display/eog-exif-display-plugin.c
index fc6489b..ba82728 100644
--- a/plugins/exif-display/eog-exif-display-plugin.c
+++ b/plugins/exif-display/eog-exif-display-plugin.c
@@ -180,7 +180,7 @@ static void set_exif_label (ExifData *exif_data, int exif_tag,
 static gchar*
 eog_exif_get_focal_length_desc (ExifData *exif_data)
 {
-	ExifEntry *entry,*entry35mm;
+	ExifEntry *entry = NULL, *entry35mm = NULL;
 	ExifByteOrder byte_order;
 	gfloat f_val = 0.0;
 	gchar *fl_text = NULL,*fl35_text = NULL;



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