diff --git a/src/mobility/position-allocator.cc b/src/mobility/position-allocator.cc index a409cb7db..98f8214ed 100644 --- a/src/mobility/position-allocator.cc +++ b/src/mobility/position-allocator.cc @@ -88,7 +88,7 @@ GridPositionAllocator::GridPositionAllocator () Vector GridPositionAllocator::GetNext (void) const { - double x, y; + double x = 0.0, y = 0.0; switch (m_layoutType) { case ROW_FIRST: x = m_xMin + m_deltaX * (m_current % m_n);