mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 18:18:24 +00:00
[client] app: fix error: ‘dataSize’ may be used uninitialized
(take 2)
This commit is contained in:
parent
c83243f22c
commit
aa92a7a90d
@ -527,7 +527,7 @@ static int frameThread(void * unused)
|
||||
PLGMPClientQueue queue;
|
||||
|
||||
uint32_t formatVer = 0;
|
||||
size_t dataSize;
|
||||
size_t dataSize = 0;
|
||||
LG_RendererFormat lgrFormat;
|
||||
|
||||
struct DMAFrameInfo dmaInfo[LGMP_Q_FRAME_LEN] = {0};
|
||||
@ -672,7 +672,7 @@ static int frameThread(void * unused)
|
||||
updatePositionInfo();
|
||||
}
|
||||
|
||||
if (g_state.formatValid && useDMA)
|
||||
if (useDMA)
|
||||
{
|
||||
/* find the existing dma buffer if it exists */
|
||||
for(int i = 0; i < sizeof(dmaInfo) / sizeof(struct DMAFrameInfo); ++i)
|
||||
|
Loading…
Reference in New Issue
Block a user