diff options
author | Philip Balister <philip@balister.org> | 2013-09-24 14:23:21 -0400 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2013-09-25 08:39:26 -0700 |
commit | 57ed3253d51788bdbba7502322c5ee4dc3ffb1de (patch) | |
tree | 3bb696bc1fa3a1e0cd59fa00d0ec8588b69dcae5 | |
parent | 5cc4ccf5ca1b9bfaaf084b0fb2c22fc49f5da59e (diff) |
gr-fec : Fix uninitialized variable error.
Addresses Coverity issue 1043258. Code likely worked since d_count is only
used with the % operator. I think there is a potential rollover bug in the
code and the use of % is a performance issue. This code needs some more
janitor work.
Signed-off-by: Philip Balister <philip@balister.org>
-rw-r--r-- | gr-fec/lib/decode_ccsds_27_fb_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-fec/lib/decode_ccsds_27_fb_impl.cc b/gr-fec/lib/decode_ccsds_27_fb_impl.cc index 7c0f3026ab..014297caef 100644 --- a/gr-fec/lib/decode_ccsds_27_fb_impl.cc +++ b/gr-fec/lib/decode_ccsds_27_fb_impl.cc @@ -39,7 +39,7 @@ namespace gr { : sync_decimator("decode_ccsds_27_fb", io_signature::make (1, 1, sizeof(float)), io_signature::make (1, 1, sizeof(char)), - 2*8) // Rate 1/2 code, unpacked to packed conversion + 2*8), d_count(0) // Rate 1/2 code, unpacked to packed conversion { float RATE = 0.5; float ebn0 = 12.0; |