mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-19 22:09:13 +00:00
GUI: ssrc_container: Zero initialize the new item
The remaining fields were set after the push_back(), but coverity doesn't like that.
This commit is contained in:
@@ -31,7 +31,7 @@ inline void SSRC_container<T, Ts_type>::insert(uint32_t ssrc, const T& item, Ts_
|
||||
}
|
||||
|
||||
if(!h){
|
||||
Holder newItem;
|
||||
Holder newItem = {};
|
||||
newItem.ssrc = ssrc;
|
||||
items.push_back(newItem);
|
||||
h = &items.back();
|
||||
|
||||
Reference in New Issue
Block a user