Skip to content

Commit

Permalink
BlockingQueue: default initialize _data
Browse files Browse the repository at this point in the history
This was reported by coverity.
  • Loading branch information
julianoes authored and dagar committed May 29, 2019
1 parent 4d7a1af commit 29915cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/containers/BlockingQueue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class BlockingQueue
px4_sem_t _sem_head;
px4_sem_t _sem_tail;

T _data[N];
T _data[N] {};

size_t _head{0};
size_t _tail{0};
Expand Down

0 comments on commit 29915cb

Please sign in to comment.