From fc432adb66974ba9c598a39390719c1813d98a8e Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Fri, 3 May 2019 11:16:58 +0200 Subject: [PATCH] fix uninitialize variable in ue_ul.c --- lib/src/phy/ue/ue_ul.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/phy/ue/ue_ul.c b/lib/src/phy/ue/ue_ul.c index d4a801a7c..ab7e2e125 100644 --- a/lib/src/phy/ue/ue_ul.c +++ b/lib/src/phy/ue/ue_ul.c @@ -806,7 +806,7 @@ get_npucch(srslte_pucch_cfg_t* cfg, srslte_uci_cfg_t* uci_cfg, srslte_uci_value_ uci_cfg->ack.ncce[0], cfg->N_pucch_1, cell->nof_prb, uci_cfg->ack.tdd_ack_M, uci_cfg->ack.tdd_ack_m); } else { if (uci_cfg->ack.tdd_ack_M <= 4) { - uint32_t n_pucch[4]; + uint32_t n_pucch[4] = {}; for (uint32_t i = 0; i < uci_cfg->ack.tdd_ack_M; i++) { n_pucch[i] = n_pucch_i_tdd(uci_cfg->ack.ncce[i], cfg->N_pucch_1, cell->nof_prb, uci_cfg->ack.tdd_ack_M, i);