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

This commit is contained in:
bde 2002-02-15 02:37:08 +00:00
parent e5f3532cbc
commit b51de6d89b

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