2004-12-20 Dmitry V. Levin <ldv@altlinux.org>
* syscall.c (call_summary): Fix potential NULL dereference. Fixes RH#143369.
This commit is contained in:
parent
dd9efd897a
commit
b77d0934b3
@ -2658,7 +2658,7 @@ FILE *outf;
|
|||||||
error_cum += counts[i].errors;
|
error_cum += counts[i].errors;
|
||||||
tv_add(&tv_cum, &tv_cum, &counts[i].time);
|
tv_add(&tv_cum, &tv_cum, &counts[i].time);
|
||||||
}
|
}
|
||||||
if (sortfun)
|
if (counts && sortfun)
|
||||||
qsort((void *) sorted_count, nsyscalls, sizeof(int), sortfun);
|
qsort((void *) sorted_count, nsyscalls, sizeof(int), sortfun);
|
||||||
fprintf(outf, "%6.6s %11.11s %11.11s %9.9s %9.9s %s\n",
|
fprintf(outf, "%6.6s %11.11s %11.11s %9.9s %9.9s %s\n",
|
||||||
"% time", "seconds", "usecs/call",
|
"% time", "seconds", "usecs/call",
|
||||||
|
Loading…
Reference in New Issue
Block a user