aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gmon
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2002-02-15 02:37:08 +0000
committerBruce Evans <bde@FreeBSD.org>2002-02-15 02:37:08 +0000
commitbdc5bab2eb61948f70a29925023fb9fe8ff46563 (patch)
treef59b0943afaac2eb17bc8b43f38e198850286ff0 /lib/libc/gmon
parent2c316efdf3be2b1539b94e3264f3eebb1a4c40ee (diff)
Notes
Diffstat (limited to 'lib/libc/gmon')
-rw-r--r--lib/libc/gmon/gmon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/gmon/gmon.c b/lib/libc/gmon/gmon.c
index f25cbabc58a5..be373b05a235 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);