1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-17 12:43:01 +00:00

Replace memset by std::fill_n

This commit is contained in:
Carles Fernandez 2018-02-25 13:34:13 +01:00
parent e17f9268a8
commit 5c77a394d7

View File

@ -366,7 +366,7 @@ int pcps_acquisition_fine_doppler_cc::estimate_Doppler(gr_vector_const_void_star
int counter = 0;
float fftFreqBins[fft_size_extended];
memset(fftFreqBins, 0, fft_size_extended * sizeof(float));
std::fill_n(fftFreqBins, fft_size_extended, 0.0);
for (int k = 0; k < (fft_size_extended / 2); k++)
{