diff --git a/lib/include/srsran/common/metrics_hub.h b/lib/include/srsran/common/metrics_hub.h index b6417a0a7..78146cd84 100644 --- a/lib/include/srsran/common/metrics_hub.h +++ b/lib/include/srsran/common/metrics_hub.h @@ -81,7 +81,7 @@ private: std::chrono::duration_cast(std::chrono::steady_clock::now() - sleep_start); if (m) { - metrics_t metric; + metrics_t metric = {}; m->get_metrics(&metric); for (uint32_t i = 0; i < listeners.size(); i++) { listeners[i]->set_metrics(metric, period_usec.count());