From 8c0e79458cc0013b53087e63487d01458d65340a Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:41:12 -0400 Subject: [PATCH] wdsp/unit: Initialize unit state Initialize state in the Unit constructor. Found by cppcheck. Signed-off-by: Robin Getz --- wdsp/unit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wdsp/unit.cpp b/wdsp/unit.cpp index b6d33ad55..71800fa30 100644 --- a/wdsp/unit.cpp +++ b/wdsp/unit.cpp @@ -40,7 +40,8 @@ Unit::Unit( in_rate{_in_rate}, out_rate(_out_rate), dsp_rate(_dsp_rate), - dsp_size(_dsp_size) + dsp_size(_dsp_size), + state(0) { if (_in_rate >= _dsp_rate) dsp_insize = _dsp_size * (_in_rate / _dsp_rate);