diff --git a/libraries/AP_Mission/AP_Mission.cpp b/libraries/AP_Mission/AP_Mission.cpp index d27beca79e9ca2..03a74e14aa61c7 100644 --- a/libraries/AP_Mission/AP_Mission.cpp +++ b/libraries/AP_Mission/AP_Mission.cpp @@ -729,7 +729,7 @@ bool AP_Mission::set_item(uint16_t index, mavlink_mission_item_int_t& src_packet bool AP_Mission::get_item(uint16_t index, mavlink_mission_item_int_t& ret_packet) const { - mavlink_mission_item_int_t tmp; + mavlink_mission_item_int_t tmp {}; // can't handle request for anything bigger than the mission size... if (index >= num_commands()) { @@ -760,7 +760,7 @@ bool AP_Mission::get_item(uint16_t index, mavlink_mission_item_int_t& ret_packet tmp.current = 0; } - // set auto continue to 1, becasue that's what's done elsewhere. + // set auto continue to 1, because that's what's done elsewhere. tmp.autocontinue = 1; // 1 (true), 0 (false) tmp.command = cmd.id;