From 55ff6ddcdc42ee928edec0f46ca7dff3ca4cb5ec Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:40:07 -0400 Subject: [PATCH] wdsp/snotch: Initialize notch filter state Initialize x0 in the SNOTCH constructor. Found by cppcheck. Signed-off-by: Robin Getz --- wdsp/snotch.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wdsp/snotch.cpp b/wdsp/snotch.cpp index f2d532c0b..e0cf1d5b7 100644 --- a/wdsp/snotch.cpp +++ b/wdsp/snotch.cpp @@ -69,7 +69,8 @@ SNOTCH::SNOTCH( out(_out), rate(_rate), f(_f), - bw(_bw) + bw(_bw), + x0(0) { calc(); }