diff --git a/libraries/GCS_MAVLink/MissionItemProtocol_Rally.cpp b/libraries/GCS_MAVLink/MissionItemProtocol_Rally.cpp index 4cfc1ade9a..a93383aaef 100644 --- a/libraries/GCS_MAVLink/MissionItemProtocol_Rally.cpp +++ b/libraries/GCS_MAVLink/MissionItemProtocol_Rally.cpp @@ -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;