GCS_MAVLink: correct use of uninitialised value in Rally upload

This commit is contained in:
Peter Barker 2020-11-10 12:47:01 +11:00 committed by Andrew Tridgell
parent 58bdae1b52
commit 41943f5fda

View File

@ -66,6 +66,7 @@ MAV_MISSION_RESULT MissionItemProtocol_Rally::convert_MISSION_ITEM_INT_to_RallyL
if (cmd.z < INT16_MIN || cmd.z > INT16_MAX) {
return MAV_MISSION_INVALID_PARAM7;
}
ret = {};
ret.lat = cmd.x;
ret.lng = cmd.y;
ret.alt = cmd.z;