[client] app: fix error: ‘dataSize’ may be used uninitialized

This commit is contained in:
Geoffrey McRae 2021-01-21 17:21:24 +11:00
parent 04774d9cd6
commit c83243f22c

View File

@ -672,7 +672,7 @@ static int frameThread(void * unused)
updatePositionInfo(); updatePositionInfo();
} }
if (useDMA) if (g_state.formatValid && 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)