diff options
Diffstat (limited to 'sys/kern/subr_prof.c')
| -rw-r--r-- | sys/kern/subr_prof.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/subr_prof.c b/sys/kern/subr_prof.c index 1c8410824683..3da2a05328f0 100644 --- a/sys/kern/subr_prof.c +++ b/sys/kern/subr_prof.c @@ -114,12 +114,11 @@ kmstartup(dummy) p->tolimit = MAXARCS; p->tossize = p->tolimit * sizeof(struct tostruct); cp = (char *)malloc(p->kcountsize + p->fromssize + p->tossize, - M_GPROF, M_NOWAIT); + M_GPROF, M_NOWAIT | M_ZERO); if (cp == 0) { printf("No memory for profiling.\n"); return; } - bzero(cp, p->kcountsize + p->tossize + p->fromssize); p->tos = (struct tostruct *)cp; cp += p->tossize; p->kcount = (HISTCOUNTER *)cp; |
