mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-03 15:00:47 +08:00
BlockingQueue: default initialize _data
This was reported by coverity.
This commit is contained in:
1 parent
4d7a1afd92
commit
29915cbc6d
1 file changed
+1
-1
@@ -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};
|
||||
|
||||
Reference in new issue
Block a user