From 40a3290e36e50b39b356ff8e4b80ab9b8ff31368 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Mon, 15 Jan 2018 17:45:54 +0100 Subject: [PATCH] initialize metrics object --- lib/include/srslte/common/metrics_hub.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/include/srslte/common/metrics_hub.h b/lib/include/srslte/common/metrics_hub.h index ca6d0beac..5dc22f7c1 100644 --- a/lib/include/srslte/common/metrics_hub.h +++ b/lib/include/srslte/common/metrics_hub.h @@ -53,7 +53,7 @@ public: private: void run_period() { if (m) { - metrics_t metric; + metrics_t metric = {}; m->get_metrics(metric); for (uint32_t i=0;iset_metrics(metric);