pssch: fix uninitialized value

This commit is contained in:
Andre Puschmann 2021-05-31 13:05:13 +02:00
parent 50b7d3937f
commit 2ace2b47b8
1 changed files with 2 additions and 0 deletions

View File

@ -201,6 +201,8 @@ int srsran_pssch_init(srsran_pssch_t* q,
ERROR("Error allocating memory"); ERROR("Error allocating memory");
return SRSRAN_ERROR; return SRSRAN_ERROR;
} }
srsran_vec_cf_zero(q->scfdma_symbols, q->nof_data_symbols * SRSRAN_NRE * SRSRAN_MAX_PRB);
if (srsran_dft_precoding_init(&q->dft_precoder, SRSRAN_MAX_PRB, true)) { if (srsran_dft_precoding_init(&q->dft_precoder, SRSRAN_MAX_PRB, true)) {
ERROR("Error DFT precoder init"); ERROR("Error DFT precoder init");
return SRSRAN_ERROR; return SRSRAN_ERROR;