1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-10 21:43:31 -04:00

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 <rgetz503@gmail.com>
This commit is contained in:
Robin Getz
2026-08-02 20:01:43 -04:00
parent 353b29b339
commit 4b1a910c12
+1 -1
View File
@@ -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))