From b6c813656559de2894596d4e722a537cba96ed93 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 15 Dec 2017 12:02:08 +1100 Subject: [PATCH] [client] initialize the local header copy for proper startup --- client/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/main.c b/client/main.c index 357dc17a..aa59cfdb 100644 --- a/client/main.c +++ b/client/main.c @@ -147,6 +147,8 @@ int renderThread(void * unused) struct KVMFRHeader header; volatile uint32_t * updateCount = &state.shm->updateCount; + memset(&header, 0, sizeof(struct KVMFRHeader)); + while(state.running) { // poll until we have a new frame, or we time out