diff --git a/gtk/gtksizerequest.c b/gtk/gtksizerequest.c index a8d4ff7763..bad631c022 100644 --- a/gtk/gtksizerequest.c +++ b/gtk/gtksizerequest.c @@ -698,6 +698,7 @@ gtk_distribute_natural_allocation (int extra_space, int i; g_return_val_if_fail (extra_space >= 0, 0); + g_return_val_if_fail (n_requested_sizes > 0, 0); spreading = g_newa (guint, n_requested_sizes);