Always clear thread info buffer to zero.

This commit is contained in:
David Xu 2006-02-06 11:54:19 +00:00
parent 04f6d3effa
commit 83154c48d6
2 changed files with 2 additions and 0 deletions

View File

@ -597,6 +597,7 @@ pt_thr_get_info(const td_thrhandle_t *th, td_thrinfo_t *info)
TDBG_FUNC();
bzero(info, sizeof(*info));
ret = pt_validate(th);
if (ret)
return (ret);

View File

@ -474,6 +474,7 @@ pt_thr_get_info(const td_thrhandle_t *th, td_thrinfo_t *info)
TDBG_FUNC();
bzero(info, sizeof(*info));
ret = pt_validate(th);
if (ret)
return (ret);