[gtk+] box: Make sure center_req is initialized



commit 22b493a6ac5f789529b3d82401728788c28477f7
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 7e31c0b..71bac69 100644
--- a/gtk/gtkbox.c
+++ b/gtk/gtkbox.c
@@ -802,7 +802,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]