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