From 862e838b65837eedeea49f34be62398ec495121c Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sun, 2 Aug 2026 18:52:10 -0400 Subject: [PATCH] modais: Initialize remaining AISModSource members Cppcheck reported several AISModSource members that were not initialized by the constructor. Initialize the remaining scalar members in the constructor initializer list to establish a well-defined initial state and avoid undefined behavior if they are accessed before being assigned. Reported by cppcheck. Signed-off-by: Robin Getz --- plugins/channeltx/modais/aismodsource.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/channeltx/modais/aismodsource.cpp b/plugins/channeltx/modais/aismodsource.cpp index 6dce17ffd..06e586b24 100644 --- a/plugins/channeltx/modais/aismodsource.cpp +++ b/plugins/channeltx/modais/aismodsource.cpp @@ -35,9 +35,16 @@ AISModSource::AISModSource() : m_scopeSink(nullptr), m_magsq(0.0), m_levelCalcCount(0), + m_rmsLevel(0.0), + m_peakLevelOut(0.0), m_peakLevel(0.0f), m_levelSum(0.0f), + m_sampleIdx(0), + m_pow(0.0f), + m_powRamp(0.0f), m_state(idle), + m_waitCounter(0), + m_nrziBit(0), m_byteIdx(0), m_bitIdx(0), m_last5Bits(0),