From dd8ef39b5ee1f45d4b708164b78fd66ef9ea7a32 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:38:23 -0400 Subject: [PATCH] wdsp/nob: Initialize NOB state Initialize NOB state members in the constructor initializer list. Found by cppcheck. Signed-off-by: Robin Getz --- wdsp/nob.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/wdsp/nob.cpp b/wdsp/nob.cpp index ac3eb9cfb..328ed83fe 100644 --- a/wdsp/nob.cpp +++ b/wdsp/nob.cpp @@ -96,8 +96,23 @@ NOB::NOB ( hangslewtime(_hangslewtime), hangtime(_hangtime), max_imp_seq_time(_max_imp_seq_time), + filterlen(0), backtau(_backtau), - threshold(_threshold) + threshold(_threshold), + time(0), + blank_count(0), + I1(0), + Q1(0), + I2(0), + Q2(0), + I(0), + Q(0), + Ilast(0), + Qlast(0), + deltaI(0), + deltaQ(0), + Inext(0), + Qnext(0) { dline_size = (int)(MAX_SAMPLERATE * ( MAX_ADV_SLEW_TIME +