lte: (fixes #2632) build error due to uninitialized variable in rem helper
authorLuciano Jerez Chaves <ljerezchaves@gmail.com>
Thu, 02 Feb 2017 16:49:55 +0100
changeset 12610 01c054e8aa95
parent 12609 96bed9b104c0
child 12611 9e27334426d2
lte: (fixes #2632) build error due to uninitialized variable in rem helper
src/lte/helper/radio-environment-map-helper.cc
--- a/src/lte/helper/radio-environment-map-helper.cc	Thu Feb 02 16:36:13 2017 +0100
+++ b/src/lte/helper/radio-environment-map-helper.cc	Thu Feb 02 16:49:55 2017 +0100
@@ -282,8 +282,8 @@
 {
   NS_LOG_FUNCTION (this << xMin << xMax << yMin << yMax);
   std::list<RemPoint>::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;