mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Always clear thread info buffer to zero.
This commit is contained in:
parent
04f6d3effa
commit
83154c48d6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155387
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue