box: Make sure center_req is initialized

In case we have an invisible center widget, we never initialize it, but
later still use it.
This commit is contained in:
Timm Bäder
2017-03-20 14:16:56 +01:00
committed by Daniel Boles
parent d689ee7d7e
commit 1daa41bf96

View File

@ -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;