[gtk+] gtkentry: Fix potential use of uninitialised variables



commit 0282714d86729a7b476fe7462bb85d9ca7ca584d
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Mon Dec 2 11:03:07 2013 +0000

    gtkentry: Fix potential use of uninitialised variables
    
    Found with scan-build.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=712760

 gtk/gtkentry.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 03fb6d7..3a2f203 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -10616,7 +10616,7 @@ gtk_entry_set_progress_fraction (GtkEntry *entry,
   GtkEntryPrivate *private;
   gdouble          old_fraction;
   gint x, y, width, height;
-  gint old_x, old_y, old_width, old_height;
+  gint old_x = 0, old_y = 0, old_width = 0, old_height = 0;
   gboolean was_pulse;
 
   g_return_if_fail (GTK_IS_ENTRY (entry));


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