Fixed uninitialized values in case of error return.

This commit is contained in:
Armin Novak 2014-12-07 00:27:06 +01:00
parent 547054a48b
commit b23b0c656e
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@ int rdpgfx_read_h264_metablock(RDPGFX_PLUGIN* gfx, wStream* s, RDPGFX_H264_METAB
RDPGFX_RECT16* regionRect;
RDPGFX_H264_QUANT_QUALITY* quantQualityVal;
meta->regionRects = NULL;
meta->quantQualityVals = NULL;
if (Stream_GetRemainingLength(s) < 4)
return -1;