accellabel: Initialize allocation variable

I have no idea why gcc didn't catch this.
This commit is contained in:
Benjamin Otte 2016-12-31 14:13:32 +01:00
parent fb43807fbb
commit e542d411ac

View File

@ -470,6 +470,7 @@ gtk_accel_label_snapshot (GtkWidget *widget,
GTK_WIDGET_CLASS (gtk_accel_label_parent_class)->snapshot (widget, snapshot);
ac_width = gtk_accel_label_get_accel_width (accel_label);
gtk_widget_get_allocation (widget, &allocation);
gtk_widget_get_preferred_size (widget, NULL, &requisition);
if (allocation.width >= requisition.width + ac_width)