From f00f7787be00378fd58e2bbdcb78b96b5f55bed5 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 2 May 2019 12:39:40 +0200 Subject: [PATCH] fix uninitialized members in dl_harq --- srsue/src/mac/dl_harq.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/srsue/src/mac/dl_harq.cc b/srsue/src/mac/dl_harq.cc index 0fcb5d773..96f4c457d 100644 --- a/srsue/src/mac/dl_harq.cc +++ b/srsue/src/mac/dl_harq.cc @@ -41,6 +41,7 @@ dl_harq_entity::dl_harq_entity() : proc(SRSLTE_MAX_HARQ_PROC) si_window_start = 0; last_temporal_crnti = 0; average_retx = 0; + nof_pkts = 0; } bool dl_harq_entity::init(srslte::log* log_h, @@ -180,6 +181,7 @@ dl_harq_entity::dl_harq_process::dl_tb_process::dl_tb_process() { is_initiated = false; ack = false; + n_retx = 0; bzero(&cur_grant, sizeof(mac_interface_phy::mac_grant_dl_t)); payload_buffer_ptr = NULL; pthread_mutex_init(&mutex, NULL);