bug: updated wrong counter when combining values

R=rsc
OCL=15751
CL=15751
This commit is contained in:
Rob Pike 2008-09-24 10:35:59 -07:00
parent 5ff12f871f
commit c79dffd5ef
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ dumphistogram()
x = pcs[i];
func(b2, sizeof(b2), x->pc);
if(j > 0 && strcmp(b1, b2) == 0) {
pcs[i-1]->count += x->count;
pcs[j-1]->count += x->count;
} else {
strcpy(b1, b2);
pcs[j++] = x;