From 0f3bb94ff736d0aa6ad7f363c93c85b87be1dd3c Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sun, 5 Jan 2020 21:01:33 -0500 Subject: [PATCH] uORB_test: initialize timings storage - fixes Coverity CID 341740 --- src/modules/uORB/uORB_tests/uORBTest_UnitTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/uORB/uORB_tests/uORBTest_UnitTest.cpp b/src/modules/uORB/uORB_tests/uORBTest_UnitTest.cpp index 5a00f59a17..b96d5a3ed5 100644 --- a/src/modules/uORB/uORB_tests/uORBTest_UnitTest.cpp +++ b/src/modules/uORB/uORB_tests/uORBTest_UnitTest.cpp @@ -94,7 +94,7 @@ int uORBTest::UnitTest::pubsublatency_main() int num_missed = 0; // timings has to be on the heap to keep frame size below 2048 bytes - unsigned *timings = new unsigned[maxruns]; + unsigned *timings = new unsigned[maxruns] {}; unsigned timing_min = 9999999, timing_max = 0; for (unsigned i = 0; i < maxruns; i++) {