diff --git a/gtk/gtktimsort.c b/gtk/gtktimsort.c index 548bb292b5..f3595b01bc 100644 --- a/gtk/gtktimsort.c +++ b/gtk/gtktimsort.c @@ -206,6 +206,8 @@ gtk_tim_sort_get_runs (GtkTimSort *self, for (i = 0; i < self->pending_runs; i++) runs[i] = self->run[i].len; + + runs[self->pending_runs] = 0; } /*