From 573dc34b738174ae2bfa01b77f33565db69cc5be Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Mon, 23 May 2022 15:57:57 +0200 Subject: [PATCH] gnb,rrc_nr_test: fix uninit memory --- srsgnb/src/stack/rrc/test/rrc_nr_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsgnb/src/stack/rrc/test/rrc_nr_test.cc b/srsgnb/src/stack/rrc/test/rrc_nr_test.cc index 3f3908c90..f54e68ad7 100644 --- a/srsgnb/src/stack/rrc/test/rrc_nr_test.cc +++ b/srsgnb/src/stack/rrc/test/rrc_nr_test.cc @@ -106,7 +106,7 @@ int test_rrc_setup() rrc_nr rrc_obj(&task_sched); // set cfg - rrc_nr_cfg_t rrc_cfg_nr; + rrc_nr_cfg_t rrc_cfg_nr = {}; rrc_cfg_nr.cell_list.emplace_back(); generate_default_nr_cell(rrc_cfg_nr.cell_list[0]); rrc_cfg_nr.cell_list[0].phy_cell.carrier.pci = 500;