From 29915cbc6d8541c79f1dac69d5c1eb9bf1a33fb1 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 29 May 2019 08:41:10 +0200 Subject: [PATCH] BlockingQueue: default initialize _data This was reported by coverity. --- src/include/containers/BlockingQueue.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/containers/BlockingQueue.hpp b/src/include/containers/BlockingQueue.hpp index 7e0ac7f89e..931cfd0950 100644 --- a/src/include/containers/BlockingQueue.hpp +++ b/src/include/containers/BlockingQueue.hpp @@ -81,7 +81,7 @@ private: px4_sem_t _sem_head; px4_sem_t _sem_tail; - T _data[N]; + T _data[N] {}; size_t _head{0}; size_t _tail{0};