Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
balister authored and jmcorgan committed Sep 25, 2013
1 parent 45d1580 commit dab30e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gr-analog/lib/pwr_squelch_cc_impl.cc
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion gr-analog/lib/pwr_squelch_ff_impl.cc
Expand Up @@ -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);
}
Expand Down

0 comments on commit dab30e8

Please sign in to comment.