[client] initialize the local header copy for proper startup

This commit is contained in:
Geoffrey McRae 2017-12-15 12:02:08 +11:00
parent 0948dda12f
commit b6c8136565

View file

@ -147,6 +147,8 @@ int renderThread(void * unused)
struct KVMFRHeader header; struct KVMFRHeader header;
volatile uint32_t * updateCount = &state.shm->updateCount; volatile uint32_t * updateCount = &state.shm->updateCount;
memset(&header, 0, sizeof(struct KVMFRHeader));
while(state.running) while(state.running)
{ {
// poll until we have a new frame, or we time out // poll until we have a new frame, or we time out