Always clear thread info buffer to zero.
This commit is contained in:
parent
04f6d3effa
commit
83154c48d6
@ -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