forked from AuroraMiddleware/gtk
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:
commit
8825e621c9
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user