Merge branch 'wip/otte/for-master' into 'master'

timsort: Actually 0-terminate the array in get_runs()

See merge request GNOME/gtk!2274
This commit is contained in:
Benjamin Otte 2020-07-22 18:08:24 +00:00
commit 8825e621c9

View File

@ -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;
}
/*<private>