commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/01: filter: set fft and ifft pointers to


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/01: filter: set fft and ifft pointers to NULL not 0 in constructor.
Date: Mon, 3 Mar 2014 21:54:05 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch maint
in repository gnuradio.

commit 608b5890e4e4dbc76f3e48eacd2ff00fa8b59548
Author: Tom Rondeau <address@hidden>
Date:   Mon Mar 3 16:34:46 2014 -0500

    filter: set fft and ifft pointers to NULL not 0 in constructor.
    
    Addresses CID 1189412: Explicit null dereferenced (FORWARD_NULL)
---
 gr-filter/lib/fft_filter.cc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gr-filter/lib/fft_filter.cc b/gr-filter/lib/fft_filter.cc
index e9c381f..94f0a88 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);
       }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]