summaryrefslogtreecommitdiff
path: root/gtk/gtkbox.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-03-20 14:16:56 +0100
committerTimm Bäder <mail@baedert.org>2017-03-20 14:16:56 +0100
commit22b493a6ac5f789529b3d82401728788c28477f7 (patch)
tree8327a648587c40b70f67c9d06d6098c41bd1289d /gtk/gtkbox.c
parentae0dadf28afc98425c5bebebfb9a729f94cd7ba3 (diff)
downloadgtk+-22b493a6ac5f789529b3d82401728788c28477f7.tar.gz
box: Make sure center_req is initialized
In case we have an invisible center widget, we never initialize it, but later still use it.
Diffstat (limited to 'gtk/gtkbox.c')
-rw-r--r--gtk/gtkbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index 7e31c0b9d9..71bac69591 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;