Skip to content

Commit

Permalink
cairo-perf-diff-files: Don't segfault reading cooked perf reports.
Browse files Browse the repository at this point in the history
Fixes cairo-perf-diff-files for non-raw cairo-perf reports.  Similar
to the patch on the mailing list, only applied to the caller of
_cairo_stats_compute():

http://lists.freedesktop.org/archives/cairo/2006-December/008720.html
  • Loading branch information
M Joonas Pihlaja committed Dec 5, 2006
1 parent a4f5463 commit 4057a98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion perf/cairo-perf-diff-files.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,8 @@ cairo_perf_report_sort_and_compute_stats (cairo_perf_report_t *report)
}
}
}
_cairo_stats_compute (&base->stats, base->samples, base->samples_count);
if (base->samples)
_cairo_stats_compute (&base->stats, base->samples, base->samples_count);
base = next;
}
}
Expand Down

0 comments on commit 4057a98

Please sign in to comment.