[hamradio-commits] [gnss-sdr] 115/251: fixing initialization

Carles Fernandez carles_fernandez-guest at moszumanska.debian.org
Wed Sep 2 00:22:41 UTC 2015


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

carles_fernandez-guest pushed a commit to branch master
in repository gnss-sdr.

commit 644af36a5e2c10ad47ffabafdfad434fd9ab54b3
Author: Carles Fernandez <carles.fernandez at gmail.com>
Date:   Thu May 21 20:27:39 2015 +0200

    fixing initialization
---
 src/algorithms/libs/galileo_e5_signal_processing.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/algorithms/libs/galileo_e5_signal_processing.cc b/src/algorithms/libs/galileo_e5_signal_processing.cc
index 6134dcb..29c4e59 100644
--- a/src/algorithms/libs/galileo_e5_signal_processing.cc
+++ b/src/algorithms/libs/galileo_e5_signal_processing.cc
@@ -104,8 +104,7 @@ void galileo_e5_a_code_gen_complex_sampled(std::complex<float>* _dest, char _Sig
     unsigned int _codeLength = Galileo_E5a_CODE_LENGTH_CHIPS;
     const int _codeFreqBasis = Galileo_E5a_CODE_CHIP_RATE_HZ; //Hz
 
-    std::complex<float>* _code;
-    _code = new std::complex<float>[_codeLength];
+    std::complex<float>* _code = new std::complex<float>[_codeLength]();
 
     galileo_e5_a_code_gen_complex_primary(_code , _prn , _Signal);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git



More information about the pkg-hamradio-commits mailing list