AP_Param: fixed valgrind errors with AP_Param::ParamToken

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

View File

@ -2389,7 +2389,7 @@ uint16_t AP_Param::count_parameters(void)
_count_marker != _count_marker_done) &&
limit--) {
AP_Param *vp;
AP_Param::ParamToken token;
AP_Param::ParamToken token {};
uint16_t count = 0;
uint16_t marker = _count_marker;