fix uninit memory in metrics processing

This commit is contained in:
Andre Puschmann 2020-01-13 13:22:36 +01:00
parent b0bfc7956d
commit 13bc9196b0
1 changed files with 1 additions and 1 deletions

View File

@ -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);