[gtk+/gtk-3-22] box: Make sure center_req is initialized



commit 1daa41bf962c473106c236d75aa7149a8a25757e
Author: Timm Bäder <mail baedert org>
Date:   Mon Mar 20 14:16:56 2017 +0100

    box: Make sure center_req is initialized
    
    In case we have an invisible center widget, we never initialize it, but
    later still use it.

 gtk/gtkbox.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index e39eb49..e034be8 100644
--- a/gtk/gtkbox.c
+++ b/gtk/gtkbox.c
@@ -830,7 +830,7 @@ gtk_box_size_allocate_with_center (GtkWidget           *widget,
   GtkTextDirection direction;
   GtkAllocation child_allocation;
   GtkRequestedSize *sizes[2];
-  GtkRequestedSize center_req;
+  GtkRequestedSize center_req = {0, 0};
   gint child_minimum_baseline, child_natural_baseline;
   gint minimum_above, natural_above;
   gint minimum_below, natural_below;


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