From 3b1ae970b9ee9b7bd0d836eb58cd2bedcf223ddd Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Fri, 16 Oct 2020 14:39:50 +0200 Subject: [PATCH] metrics_test: fix uninit variable --- srsue/test/metrics_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/srsue/test/metrics_test.cc b/srsue/test/metrics_test.cc index eeb5cb6f9..6b955f8b6 100644 --- a/srsue/test/metrics_test.cc +++ b/srsue/test/metrics_test.cc @@ -42,6 +42,8 @@ class ue_dummy : public ue_metrics_interface public: bool get_metrics(ue_metrics_t* m) { + *m = {}; + // fill dummy values m->rf.rf_o = 10; m->phy.nof_active_cc = 2;