From 4238c045a4ddba963684502c0387384a363664b0 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Mon, 14 Oct 2019 14:43:59 +0200 Subject: [PATCH] fix unitialised value --- srsenb/src/phy/sf_worker.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/srsenb/src/phy/sf_worker.cc b/srsenb/src/phy/sf_worker.cc index 9100bfe15..92d3f48e5 100644 --- a/srsenb/src/phy/sf_worker.cc +++ b/srsenb/src/phy/sf_worker.cc @@ -646,11 +646,9 @@ int sf_worker::decode_pusch(stack_interface_phy_lte::ul_sched_grant_t* grants, u int sf_worker::decode_pucch() { - srslte_pucch_res_t pucch_res; - ZERO_OBJECT(pucch_res); - for (std::map::iterator iter = ue_db.begin(); iter != ue_db.end(); ++iter) { - uint16_t rnti = (uint16_t)iter->first; + srslte_pucch_res_t pucch_res = {}; + uint16_t rnti = (uint16_t)iter->first; // If it's a User RNTI and doesn't have PUSCH grant in this TTI if (SRSLTE_RNTI_ISUSER(rnti) && !ue_db[rnti]->is_grant_available) {