diff options
Diffstat (limited to 'lib/libc/gmon/gmon.c')
-rw-r--r-- | lib/libc/gmon/gmon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/gmon/gmon.c b/lib/libc/gmon/gmon.c index f25cbab..be373b0 100644 --- a/lib/libc/gmon/gmon.c +++ b/lib/libc/gmon/gmon.c @@ -192,6 +192,7 @@ _mcleanup() _write(log, buf, len); #endif hdr = (struct gmonhdr *)&gmonhdr; + bzero(hdr, sizeof(*hdr)); hdr->lpc = p->lowpc; hdr->hpc = p->highpc; hdr->ncnt = p->kcountsize + sizeof(gmonhdr); |