Permalink
Browse files

gr-analog : Fix initialization bugs in cc anf ff power squelch blocks.

Addresses Coverity issues 1043286 and 1043285.

Signed-off-by: Philip Balister <philip@balister.org>
  • Loading branch information...
1 parent 45d1580 commit dab30e873a8849712e03c26066909a62c8831880 @balister balister committed with jmcorgan Sep 24, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 gr-analog/lib/pwr_squelch_cc_impl.cc
  2. +1 −1 gr-analog/lib/pwr_squelch_ff_impl.cc
View
2 gr-analog/lib/pwr_squelch_cc_impl.cc
@@ -43,7 +43,7 @@ namespace gr {
io_signature::make(1, 1, sizeof(gr_complex)),
io_signature::make(1, 1, sizeof(gr_complex))),
squelch_base_cc_impl("pwr_squelch_cc", ramp, gate),
- d_iir(alpha)
+ d_pwr(0), d_iir(alpha)
{
set_threshold(threshold);
}
View
2 gr-analog/lib/pwr_squelch_ff_impl.cc
@@ -43,7 +43,7 @@ namespace gr {
io_signature::make(1, 1, sizeof(float)),
io_signature::make(1, 1, sizeof(float))),
squelch_base_ff_impl("pwr_squelch_ff", ramp, gate),
- d_iir(alpha)
+ d_pwr(0), d_iir(alpha)
{
set_threshold(threshold);
}

0 comments on commit dab30e8

Please sign in to comment.