From 30db614d328952ea3baf547c5a5d71b6661aba92 Mon Sep 17 00:00:00 2001 From: "Dmitrij D. Czarkoff" Date: Thu, 28 Apr 2016 18:10:48 +0200 Subject: 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. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index a24161b..44cedcf 100644 --- a/src/main.c +++ b/src/main.c @@ -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 */ -- cgit v1.2.3