mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
uORB_test: initialize timings storage
- fixes Coverity CID 341740
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user