From af1dc022b1bf3774d977965463ca54db2c5ed6f7 Mon Sep 17 00:00:00 2001 From: Luciano Jerez Chaves Date: Thu, 2 Feb 2017 16:49:55 +0100 Subject: [PATCH] lte: (fixes #2632) build error due to uninitialized variable in rem helper --- src/lte/helper/radio-environment-map-helper.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lte/helper/radio-environment-map-helper.cc b/src/lte/helper/radio-environment-map-helper.cc index 67351cff4..0d5545976 100644 --- a/src/lte/helper/radio-environment-map-helper.cc +++ b/src/lte/helper/radio-environment-map-helper.cc @@ -282,8 +282,8 @@ RadioEnvironmentMapHelper::RunOneIteration (double xMin, double xMax, double yMi { NS_LOG_FUNCTION (this << xMin << xMax << yMin << yMax); std::list::iterator remIt = m_rem.begin (); - double x; - double y; + double x = 0.0; + double y = 0.0; for (x = xMin; x < xMax + 0.5*m_xStep; x += m_xStep) { for (y = (x == xMin) ? yMin : m_yMin;