From 540222457db826fbe890e2cd10c6d5f9abc99922 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:36:23 -0400 Subject: [PATCH] wdsp/emnr: Initialize EMNR state Initialize gain, NPE, AE, and file state in the EMNR constructor. Found by cppcheck. Signed-off-by: Robin Getz --- wdsp/emnr.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wdsp/emnr.cpp b/wdsp/emnr.cpp index c07bd22e8..07808654f 100644 --- a/wdsp/emnr.cpp +++ b/wdsp/emnr.cpp @@ -419,7 +419,11 @@ EMNR::G::G( rate(_rate), msize(_msize), mask(_mask), - y(_y) + y(_y), + gain_method(0), + npe_method(0), + ae_run(0), + fileb(nullptr) { lambda_y.resize(msize);