[client] main: prevent possible null pointer dereference

This commit is contained in:
Geoffrey McRae committed 2023-11-11 13:48:41 +11:00
1 parent f59ef4422a
commit 120e063a10
1 file changed
+7
+7
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)
{