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 New Issue
Block a user