fix uninit memory in metrics processing

master
Andre Puschmann 5 years ago
parent b0bfc7956d
commit 13bc9196b0

@ -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]) 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(); uint32_t nof_users = workers[0].get_nof_rnti();
bzero(metrics, sizeof(phy_metrics_t) * ENB_METRICS_MAX_USERS); bzero(metrics, sizeof(phy_metrics_t) * ENB_METRICS_MAX_USERS);

Loading…
Cancel
Save