From 6fa5812a69ce9978d101f31c6495ae1a5940b011 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:03:13 -0400 Subject: [PATCH] ft8/ft8 : Initialize uninitialized constructor members Initialize pass_, hack_0_, and hack_1_ in the FT8 constructor initializer list. cppcheck identified these members as potentially uninitialized. Initializing them makes the constructor state explicit and reduces the risk of undefined behavior if they are read before being assigned. Signed-off-by: Robin Getz --- ft8/ft8.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ft8/ft8.cpp b/ft8/ft8.cpp index 28d91b273..8b00e840d 100644 --- a/ft8/ft8.cpp +++ b/ft8/ft8.cpp @@ -84,7 +84,10 @@ FT8::FT8( CallbackInterface *cb, const std::vector &prevdecs, FFTEngine *fftEngine -) +): + pass_(0), + hack_0_(0.0f), + hack_1_(0.0f) { samples_ = samples; min_hz_ = min_hz;