diff --git a/libraries/AP_ADSB/AP_ADSB.cpp b/libraries/AP_ADSB/AP_ADSB.cpp index e34f35f32f..6401fd435f 100644 --- a/libraries/AP_ADSB/AP_ADSB.cpp +++ b/libraries/AP_ADSB/AP_ADSB.cpp @@ -148,7 +148,7 @@ void AP_ADSB::perform_threat_detection(void) */ Location AP_ADSB::get_location(const adsb_vehicle_t &vehicle) const { - Location loc; + Location loc {}; loc.alt = vehicle.info.altitude * 100; loc.lat = vehicle.info.lat * 1e7; loc.lng = vehicle.info.lon * 1e7;