Browse Source

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>
chirpmodem-v8.0.0
Robin Getz 2 months ago
parent
commit
feae8a3f22
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 2
      plugins/channelrx/demoddatv/leansdr/dvb.h

2
plugins/channelrx/demoddatv/leansdr/dvb.h

@ -1665,7 +1665,7 @@ struct viterbi_sync : runnable @@ -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)
{

Loading…
Cancel
Save