From 4b1a910c12c33ff436cdf87d5bd44cfbb8c7ee22 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sun, 2 Aug 2026 20:01:43 -0400 Subject: [PATCH] modais: Initialize AIS modulator sample variable Coverity reported an uninitialized value use in AISModSource::modulateSample(). The Gaussian filter output variable was only assigned during transmission, but was used afterwards when the modulator was idle or waiting. Initialize the variable to zero to match the idle sample behavior. Signed-off-by: Robin Getz --- plugins/channeltx/modais/aismodsource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/channeltx/modais/aismodsource.cpp b/plugins/channeltx/modais/aismodsource.cpp index 7207eec46..8d444fb0c 100644 --- a/plugins/channeltx/modais/aismodsource.cpp +++ b/plugins/channeltx/modais/aismodsource.cpp @@ -154,7 +154,7 @@ void AISModSource::sampleToScope(Complex sample) void AISModSource::modulateSample() { - Real mod; + Real mod = 0.0f; Real linearRampGain; if ((m_state == idle) || (m_state == wait))