rrc,sync: fix two uninit vars

detected by Valgrind when running UE with TDD cell
master
Andre Puschmann 4 years ago
parent 723ca2dd48
commit 0740154bff

@ -745,7 +745,7 @@ srslte_sync_find(srslte_sync_t* q, const cf_t* input, uint32_t find_offset, uint
int sss_idx; int sss_idx;
uint32_t nof_frame_type_trials; uint32_t nof_frame_type_trials;
srslte_frame_type_t frame_type_trials[2]; srslte_frame_type_t frame_type_trials[2];
float sss_corr[2]; float sss_corr[2] = {};
uint32_t sf_idx[2], N_id_1[2]; uint32_t sf_idx[2], N_id_1[2];
if (q->detect_frame_type) { if (q->detect_frame_type) {

@ -1185,7 +1185,7 @@ void rrc::handle_sib1()
// Set TDD Config // Set TDD Config
if (sib1->tdd_cfg_present) { if (sib1->tdd_cfg_present) {
srslte_tdd_config_t tdd_config; srslte_tdd_config_t tdd_config = {};
tdd_config.sf_config = sib1->tdd_cfg.sf_assign.to_number(); tdd_config.sf_config = sib1->tdd_cfg.sf_assign.to_number();
tdd_config.ss_config = sib1->tdd_cfg.special_sf_patterns.to_number(); tdd_config.ss_config = sib1->tdd_cfg.special_sf_patterns.to_number();
phy->set_config_tdd(tdd_config); phy->set_config_tdd(tdd_config);

Loading…
Cancel
Save