GCS_MAVLink: fixed valgrind errors with AP_Param::ParamToken

This commit is contained in:
Andrew Tridgell 2021-01-21 21:55:55 +11:00
parent ac35867c17
commit 1716fcf995

View File

@ -380,7 +380,7 @@ void GCS_MAVLINK::param_io_timer(void)
AP_Param *vp;
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);
if (vp == nullptr) {
return;