From ce9bcc1033f6f14da1917a5439e35ea10a8116d4 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Mon, 14 Oct 2019 14:42:34 +0200 Subject: [PATCH] fix unitialised value --- srsenb/src/phy/sf_worker.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/srsenb/src/phy/sf_worker.cc b/srsenb/src/phy/sf_worker.cc index d13b7533f..9100bfe15 100644 --- a/srsenb/src/phy/sf_worker.cc +++ b/srsenb/src/phy/sf_worker.cc @@ -570,10 +570,11 @@ void sf_worker::send_uci_data(uint16_t rnti, srslte_uci_cfg_t* uci_cfg, srslte_u int sf_worker::decode_pusch(stack_interface_phy_lte::ul_sched_grant_t* grants, uint32_t nof_pusch) { - srslte_pusch_res_t pusch_res; for (uint32_t i = 0; i < nof_pusch; i++) { - uint16_t rnti = grants[i].dci.rnti; + srslte_pusch_res_t pusch_res = {}; + uint16_t rnti = grants[i].dci.rnti; + if (rnti) { // mark this tti as having an ul dci to avoid pucch ue_db[rnti]->is_grant_available = true;