diff --git a/libraries/AP_Compass/CompassCalibrator.cpp b/libraries/AP_Compass/CompassCalibrator.cpp index 57a374987c571..5e948be077f23 100644 --- a/libraries/AP_Compass/CompassCalibrator.cpp +++ b/libraries/AP_Compass/CompassCalibrator.cpp @@ -79,7 +79,8 @@ extern const AP_HAL::HAL& hal; ///////////////////// PUBLIC INTERFACE ///////////////////// //////////////////////////////////////////////////////////// -CompassCalibrator::CompassCalibrator() +CompassCalibrator::CompassCalibrator() : + _sample_buffer(nullptr) { set_status(Status::NOT_STARTED); }