From 12b93e292299aa2ab9de8d48e9ef5507d9783567 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 21 Jan 2021 21:55:55 +1100 Subject: [PATCH] AP_OSD: fixed valgrind errors with AP_Param::ParamToken --- libraries/AP_OSD/AP_OSD_ParamScreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_OSD/AP_OSD_ParamScreen.cpp b/libraries/AP_OSD/AP_OSD_ParamScreen.cpp index 7c91070d01..cd265bbb3e 100644 --- a/libraries/AP_OSD/AP_OSD_ParamScreen.cpp +++ b/libraries/AP_OSD/AP_OSD_ParamScreen.cpp @@ -355,7 +355,7 @@ void AP_OSD_ParamScreen::modify_configured_parameter(uint8_t number, Event ev) } else { // going backwards is somewhat convoluted as the param code is geared for going forward ap_var_type type = AP_PARAM_NONE, prev_type = AP_PARAM_NONE, prev_prev_type = AP_PARAM_NONE; - AP_Param::ParamToken token, prev_token, prev_prev_token; + AP_Param::ParamToken token {}, prev_token, prev_prev_token; for (param = AP_Param::first(&token, &type); param && (setting._current_token.key != token.key