diff options
author | Tom Rondeau <tom@trondeau.com> | 2014-03-03 16:34:46 -0500 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2014-03-03 16:34:46 -0500 |
commit | 608b5890e4e4dbc76f3e48eacd2ff00fa8b59548 (patch) | |
tree | ea2f47f56326fa13fa21f67b593ee3d25af5166f | |
parent | 5d7316cb093a4708bbfcb5d61829f6e468b1c9aa (diff) |
filter: set fft and ifft pointers to NULL not 0 in constructor.
Addresses CID 1189412: Explicit null dereferenced (FORWARD_NULL)
-rw-r--r-- | gr-filter/lib/fft_filter.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gr-filter/lib/fft_filter.cc b/gr-filter/lib/fft_filter.cc index e9c381fa2e..94f0a8894b 100644 --- a/gr-filter/lib/fft_filter.cc +++ b/gr-filter/lib/fft_filter.cc @@ -38,8 +38,8 @@ namespace gr { fft_filter_fff::fft_filter_fff(int decimation, const std::vector<float> &taps, int nthreads) - : d_fftsize(-1), d_decimation(decimation), d_fwdfft(0), - d_invfft(0), d_nthreads(nthreads), d_xformed_taps(NULL) + : d_fftsize(-1), d_decimation(decimation), d_fwdfft(NULL), + d_invfft(NULL), d_nthreads(nthreads), d_xformed_taps(NULL) { set_taps(taps); } @@ -195,8 +195,8 @@ namespace gr { fft_filter_ccc::fft_filter_ccc(int decimation, const std::vector<gr_complex> &taps, int nthreads) - : d_fftsize(-1), d_decimation(decimation), d_fwdfft(0), - d_invfft(0), d_nthreads(nthreads), d_xformed_taps(NULL) + : d_fftsize(-1), d_decimation(decimation), d_fwdfft(NULL), + d_invfft(NULL), d_nthreads(nthreads), d_xformed_taps(NULL) { set_taps(taps); } |