AP_InertialNav: fix gcc8 warning

This commit is contained in:
Pierre Kancir 2019-03-12 10:07:06 +01:00 committed by Peter Barker
parent f6941beeb9
commit 1af6178be8
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ struct Location AP_InertialNav_NavEKF::get_origin() const
struct Location ret;
if (!_ahrs_ekf.get_origin(ret)) {
// initialise location to all zeros if EKF origin not yet set
memset(&ret, 0, sizeof(ret));
ret.zero();
}
return ret;
}