From ca971f2ff7b3450dcde641bbb73b9eedd2f4d0fa Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Mon, 26 Oct 2026 17:26:14 -0400 Subject: [PATCH] modemdvb: Initialize OFDM grid parameters Initialize grid spacing, offset, and amplitude in the OFDMDemod constructor to prevent use of indeterminate member values. Identified by cppcheck. Signed-off-by: Robin Getz --- modemdvb/dvbt2ofdm.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modemdvb/dvbt2ofdm.cpp b/modemdvb/dvbt2ofdm.cpp index 94ebc5051..979998aab 100644 --- a/modemdvb/dvbt2ofdm.cpp +++ b/modemdvb/dvbt2ofdm.cpp @@ -108,7 +108,10 @@ OFDMDemod::OFDMDemod(int bandwidthHz, FFTFactory *fftFactory) : m_sampleRate(sampleRate(bandwidthHz)), m_p2Tables(nullptr), m_tables(nullptr), - m_interpolationSpacing(0) + m_interpolationSpacing(0), + m_gridSpacing(0), + m_gridOffset(0), + m_gridAmplitude(0.0f) { m_fft.m_factory = fftFactory; m_p1Fft.m_factory = fftFactory;