demoddatv/leansdr/dvb: Initialize viterbi sync array

Value-initialize the sync array to avoid uninitialized members.

Found by cppcheck.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
This commit is contained in:
Robin Getz
2026-10-03 14:11:11 -04:00
parent 93146a9170
commit feae8a3f22
+1 -1
View File
@@ -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)
{