From c3eff4fb9fa8272d4e1ef64f6bf60dcfb419b01b Mon Sep 17 00:00:00 2001 From: Martin Piatka Date: Mon, 21 Nov 2022 13:20:42 +0100 Subject: [PATCH] GUI: ssrc_container: Zero initialize the new item The remaining fields were set after the push_back(), but coverity doesn't like that. --- gui/QT/util/ssrc_container.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/QT/util/ssrc_container.hpp b/gui/QT/util/ssrc_container.hpp index 387010b5a..d1c2ce096 100644 --- a/gui/QT/util/ssrc_container.hpp +++ b/gui/QT/util/ssrc_container.hpp @@ -31,7 +31,7 @@ inline void SSRC_container::insert(uint32_t ssrc, const T& item, Ts_ } if(!h){ - Holder newItem; + Holder newItem = {}; newItem.ssrc = ssrc; items.push_back(newItem); h = &items.back();