mobility: initialize variables

This commit is contained in:
Gabriel Ferreira
2022-03-09 23:18:24 -03:00
parent cd1308e3ad
commit 1621b331c1

View File

@@ -184,6 +184,7 @@ SteadyStateRandomWaypointMobilityModel::DoInitializePrivate (void)
else // node initially moving
{
double x1, x2, y1, y2;
x1 = x2 = y1 = y2 = 0;
double r = 0;
double u1 = 1;
while (u1 >= r)