Don't leave stack garbage in the reserved fields of the header.

This commit is contained in:
Bruce Evans 2002-02-15 02:37:08 +00:00
parent 2c316efdf3
commit bdc5bab2eb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90668

View File

@ -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);