[eog] Pre-init conditionally used pointers on stack



commit 18da0a94d357d12d5b6e80669bf39dfbfb51f07f
Author: Felix Riemann <friemann gnome org>
Date:   Tue Sep 22 23:00:29 2009 +0200

    Pre-init conditionally used pointers on stack
    
    This is to avoid problems (eg. crashes) in case the stack is not clean.

 src/eog-properties-dialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/eog-properties-dialog.c b/src/eog-properties-dialog.c
index afa05f5..c519d07 100644
--- a/src/eog-properties-dialog.c
+++ b/src/eog-properties-dialog.c
@@ -201,7 +201,7 @@ eog_exif_set_label (GtkWidget *w, ExifData *exif_data, gint tag_id)
 static void
 eog_exif_set_focal_length_label (GtkWidget *w, 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]