From e77adbe5a54a5f87b823c95c7a724120707b3007 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 2 May 2019 12:43:19 +0200 Subject: [PATCH] fix uninitialized members in ue_interface --- lib/include/srslte/interfaces/ue_interfaces.h | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/lib/include/srslte/interfaces/ue_interfaces.h b/lib/include/srslte/interfaces/ue_interfaces.h index 41e19719a..d8091d739 100644 --- a/lib/include/srslte/interfaces/ue_interfaces.h +++ b/lib/include/srslte/interfaces/ue_interfaces.h @@ -491,7 +491,11 @@ public: bool enabled; int dsr_transmax; sr_cfg_t() { reset(); } - void reset() { enabled = false; } + void reset() + { + enabled = false; + dsr_transmax = 0; + } } sr_cfg_t; typedef struct rach_cfg_t { @@ -507,7 +511,20 @@ public: uint32_t contentionResolutionTimer; uint32_t new_ra_msg_len; rach_cfg_t() { reset(); } - void reset() { enabled = false; } + void reset() + { + enabled = false; + nof_preambles = 0; + nof_groupA_preambles = 0; + messagePowerOffsetGroupB = 0; + messageSizeGroupA = 0; + responseWindowSize = 0; + powerRampingStep = 0; + preambleTransMax = 0; + iniReceivedTargetPower = 0; + contentionResolutionTimer = 0; + new_ra_msg_len = 0; + } } rach_cfg_t; class mac_cfg_t