mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 11:17:54 +00:00
[client] main: prevent possible null pointer dereference
This commit is contained in:
parent
f59ef4422a
commit
120e063a10
1 changed files with 7 additions and 0 deletions
|
@ -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 a new issue