From 13bc9196b0a5cdbacae88c02482111431eb1f7b1 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Mon, 13 Jan 2020 13:22:36 +0100 Subject: [PATCH] fix uninit memory in metrics processing --- srsenb/src/phy/phy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsenb/src/phy/phy.cc b/srsenb/src/phy/phy.cc index 68d1bd439..01af691de 100644 --- a/srsenb/src/phy/phy.cc +++ b/srsenb/src/phy/phy.cc @@ -222,7 +222,7 @@ void phy::set_mch_period_stop(uint32_t stop) void phy::get_metrics(phy_metrics_t metrics[ENB_METRICS_MAX_USERS]) { - phy_metrics_t metrics_tmp[ENB_METRICS_MAX_USERS]; + phy_metrics_t metrics_tmp[ENB_METRICS_MAX_USERS] = {}; uint32_t nof_users = workers[0].get_nof_rnti(); bzero(metrics, sizeof(phy_metrics_t) * ENB_METRICS_MAX_USERS);