Browse Source

SITL: initialise a couple of variables to prevent a valgrind error

master
Andrew Tridgell 10 years ago
parent
commit
d8df31c023
  1. 3
      libraries/SITL/SIM_Aircraft.cpp

3
libraries/SITL/SIM_Aircraft.cpp

@ -75,6 +75,9 @@ Aircraft::Aircraft(const char *home_str, const char *frame_str) :
free(s); free(s);
set_speedup(1); set_speedup(1);
last_wall_time_us = get_wall_time_us();
frame_counter = 0;
} }
/* /*

Loading…
Cancel
Save