mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 13:33:40 +00:00
[client] main: prevent possible null pointer dereference
This commit is contained in:
parent
f59ef4422a
commit
120e063a10
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user