commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 02/04: gr-fft-filter : Fix uninitialized po


From: git
Subject: [Commit-gnuradio] [gnuradio] 02/04: gr-fft-filter : Fix uninitialized pointers.
Date: Sat, 21 Dec 2013 23:54:22 +0000 (UTC)

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

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit 2211b4c9c27d6ec566dc95b0361ed3e7b4b820e6
Author: Philip Balister <address@hidden>
Date:   Mon Dec 16 15:40:24 2013 -0500

    gr-fft-filter : Fix uninitialized pointers.
    
    Address CID's 1043252 and 1043253. Inspection suggest the code should
    work, but set the pointers to NULL to force errors on strange code
    paths.
    
    Signed-off-by: Philip Balister <address@hidden>
---
 gr-filter/lib/fft_filter.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gr-filter/lib/fft_filter.cc b/gr-filter/lib/fft_filter.cc
index b4cea0e..8293757 100644
--- a/gr-filter/lib/fft_filter.cc
+++ b/gr-filter/lib/fft_filter.cc
@@ -39,7 +39,7 @@ namespace gr {
                                     const std::vector<float> &taps,
                                     int nthreads)
        : d_fftsize(-1), d_decimation(decimation), d_fwdfft(0),
-         d_invfft(0), d_nthreads(nthreads)
+         d_invfft(0), d_nthreads(nthreads), d_xformed_taps(NULL)
       {
        set_taps(taps);
       }
@@ -192,7 +192,7 @@ namespace gr {
                                     const std::vector<gr_complex> &taps,
                                     int nthreads)
        : d_fftsize(-1), d_decimation(decimation), d_fwdfft(0),
-         d_invfft(0), d_nthreads(nthreads)
+         d_invfft(0), d_nthreads(nthreads), d_xformed_taps(NULL)
       {
        set_taps(taps);
       }



reply via email to

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