GCS_MAVLink: fixed valgrind errors with AP_Param::ParamToken
This commit is contained in:
parent
ac35867c17
commit
1716fcf995
@ -380,7 +380,7 @@ void GCS_MAVLINK::param_io_timer(void)
|
|||||||
AP_Param *vp;
|
AP_Param *vp;
|
||||||
|
|
||||||
if (req.param_index != -1) {
|
if (req.param_index != -1) {
|
||||||
AP_Param::ParamToken token;
|
AP_Param::ParamToken token {};
|
||||||
vp = AP_Param::find_by_index(req.param_index, &reply.p_type, &token);
|
vp = AP_Param::find_by_index(req.param_index, &reply.p_type, &token);
|
||||||
if (vp == nullptr) {
|
if (vp == nullptr) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user