mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-03 18:20:31 +01:00
[cairo-perf-diff-files] Only use a valid initializer for min_test.
Do not assume that the tests[0] is a valid test, but instead scan for the first test that has a name (i.e. is not a terminator).
This commit is contained in:
parent
38c779e7d6
commit
1651359ffb
1 changed files with 7 additions and 2 deletions
|
|
@ -644,8 +644,13 @@ cairo_perf_reports_compare (cairo_perf_report_t *reports,
|
|||
|
||||
/* Find the minimum of all current tests, (we have to do this
|
||||
* in case some reports don't have a particular test). */
|
||||
min_test = tests[0];
|
||||
for (i = 1; i < num_reports; i++) {
|
||||
for (i = 0; i < num_reports; i++) {
|
||||
if (tests[i]->name) {
|
||||
min_test = tests[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
for (++i; i < num_reports; i++) {
|
||||
if (tests[i]->name &&
|
||||
test_report_cmp_backend_then_name (tests[i], min_test) < 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue