fix another bunch of uninit memory in tests, and one in srsENB

master
Andre Puschmann 5 years ago
parent 0554064bf0
commit be4ba504bd

@ -108,8 +108,7 @@ int main(int argc, char** argv)
}
// Variables init Tx
srslte_chest_sl_t q;
memset(q, 0, sizeof(q));
srslte_chest_sl_t q = {};
if (run_psbch_test) {
// Tx

@ -126,7 +126,7 @@ int main(int argc, char** argv)
cf_t* input_buffer_temp = srslte_vec_malloc(sizeof(cf_t) * sf_n_samples);
// init PSSS
srslte_psss_t psss;
srslte_psss_t psss = {};
srslte_psss_init(&psss, nof_prb, cp);
struct timeval t[3];

@ -175,7 +175,7 @@ int main(int argc, char** argv)
}
}
srslte_nbiot_ue_sync_t ue_sync;
srslte_nbiot_ue_sync_t ue_sync = {};
if (srslte_ue_sync_nbiot_init(&ue_sync, cell, srslte_rf_recv_wrapper_cs, (void*)&rf)) {
fprintf(stderr, "Error initiating ue_sync\n");
exit(-1);

@ -246,7 +246,7 @@ int main(int argc, char** argv)
srslte_timestamp_t ts_prev[SRSLTE_MAX_RADIOS], ts_rx[SRSLTE_MAX_RADIOS], ts_tx;
uint32_t nof_gaps = 0;
char filename[256] = {};
srslte_filesink_t filesink[SRSLTE_MAX_RADIOS];
srslte_filesink_t filesink[SRSLTE_MAX_RADIOS] = {};
srslte_dft_plan_t dft_plan = {}, idft_plan = {};
srslte_agc_t agc[SRSLTE_MAX_RADIOS] = {};

@ -251,7 +251,7 @@ void phy_common::ue_db_set_last_ul_tb(uint16_t rnti, uint32_t pid, srslte_ra_tb_
srslte_ra_tb_t phy_common::ue_db_get_last_ul_tb(uint16_t rnti, uint32_t pid)
{
pthread_mutex_lock(&user_mutex);
srslte_ra_tb_t ret;
srslte_ra_tb_t ret = {};
if (common_ue_db.count(rnti)) {
ret = common_ue_db[rnti].last_tb[pid % SRSLTE_FDD_NOF_HARQ];
}

Loading…
Cancel
Save