From feae8a3f22e904f46d3c7a2c24014a3df59af0ee Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:11:11 -0400 Subject: [PATCH] demoddatv/leansdr/dvb: Initialize viterbi sync array Value-initialize the sync array to avoid uninitialized members. Found by cppcheck. Signed-off-by: Robin Getz --- plugins/channelrx/demoddatv/leansdr/dvb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/channelrx/demoddatv/leansdr/dvb.h b/plugins/channelrx/demoddatv/leansdr/dvb.h index e8d207aaa..ed3457cb8 100644 --- a/plugins/channelrx/demoddatv/leansdr/dvb.h +++ b/plugins/channelrx/demoddatv/leansdr/dvb.h @@ -1665,7 +1665,7 @@ struct viterbi_sync : runnable // that certain rot/conj combinations are equivalent to // polarity inversion. We could reduce nsyncs. - syncs = new sync[nsyncs]; + syncs = new sync[nsyncs]{}; for (int s = 0; s < nsyncs; ++s) {