Fix uninitialized use of "last_time"

Set "last_time" to current time at declaration time, so that it holds at least
something by the time it is used.
This commit is contained in:
Dmitrij D. Czarkoff 2016-04-28 18:10:48 +02:00
parent ff5029b867
commit 30db614d32

View file

@ -313,7 +313,7 @@ int main(int argc, char** argv)
}
/* help keeping track of time */
unsigned int last_time;
unsigned int last_time = SDL_GetTicks();
unsigned int current_time;
/* keep file change polling rate under control */