[client] main: prevent possible null pointer dereference

This commit is contained in:
Geoffrey McRae 2023-11-11 13:13:08 +11:00
parent f59ef4422a
commit 120e063a10

View file

@ -761,6 +761,13 @@ int main_frameThread(void * unused)
}
}
if (!dma)
{
DEBUG_ERROR("Failed to obtain a free DMA buffer for use");
g_state.state = APP_STATE_SHUTDOWN;
break;
}
/* open the buffer */
if (dma->fd == -1)
{