From c8f740c34ec8b15196c01bb6e2bbf2bd129f249c Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 30 Oct 2020 02:36:12 +1100 Subject: [PATCH] [client] fix usage of uninitialized time variable --- client/src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/main.c b/client/src/main.c index fadfaedf..45865d59 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -162,6 +162,8 @@ static int renderThread(void * unused) lgSignalEvent(e_startup); struct timespec time; + clock_gettime(CLOCK_MONOTONIC, &time); + while(state.state != APP_STATE_SHUTDOWN) { if (state.frameTime > 0)