Don't report collapsed subtotal if no xacts seen

This commit is contained in:
John Wiegley 2009-02-23 14:44:10 -04:00
parent 7b7814d466
commit 4ab50df564

View file

@ -280,7 +280,8 @@ namespace {
void collapse_xacts::report_subtotal() void collapse_xacts::report_subtotal()
{ {
assert(count >= 1); if (! count)
return;
std::size_t displayed_count = 0; std::size_t displayed_count = 0;
foreach (xact_t * xact, component_xacts) { foreach (xact_t * xact, component_xacts) {