Browse Source

wdsp/nbp: Initialize notch database state

Initialize tunefreq, shift, and hadnotch in the NBP constructors.

Found by cppcheck.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.0.0
Robin Getz 2 months ago
parent
commit
3cd633736f
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 7
      wdsp/nbp.cpp

7
wdsp/nbp.cpp

@ -41,7 +41,9 @@ namespace WDSP { @@ -41,7 +41,9 @@ namespace WDSP {
* *
********************************************************************************************************/
NOTCHDB::NOTCHDB(int _master_run, int _maxnotches)
NOTCHDB::NOTCHDB(int _master_run, int _maxnotches) :
tunefreq(0),
shift(0)
{
master_run = _master_run;
maxnotches = _maxnotches;
@ -433,7 +435,8 @@ NBP::NBP( @@ -433,7 +435,8 @@ NBP::NBP(
flow(_flow),
fhigh(_fhigh),
maxpb(_maxpb),
notchdb(_notchdb)
notchdb(_notchdb),
hadnotch(0)
{
bplow.resize(maxpb);
bphigh.resize(maxpb);

Loading…
Cancel
Save