From 3969bde84a967d8a66d528d6f900b21a0d0b4bcd Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 5 Jun 2016 07:20:46 +1000 Subject: [PATCH] AP_Math: fixed coverity warning in example --- libraries/AP_Math/examples/location/location.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Math/examples/location/location.cpp b/libraries/AP_Math/examples/location/location.cpp index bb2d1e7cce..30e2424da8 100644 --- a/libraries/AP_Math/examples/location/location.cpp +++ b/libraries/AP_Math/examples/location/location.cpp @@ -97,7 +97,7 @@ static const struct { static void test_offset(void) { - struct Location loc; + struct Location loc {}; loc.lat = -35*1.0e7f; loc.lng = 149*1.0e7f; @@ -117,7 +117,7 @@ static void test_offset(void) */ static void test_accuracy(void) { - struct Location loc; + struct Location loc {}; loc.lat = 0.0e7f; loc.lng = -120.0e7f;