Fixed uninitialized variable.

This commit is contained in:
Armin Novak 2014-11-16 16:58:43 +01:00
parent b7d5bf49f8
commit d653e6382e

View File

@ -151,7 +151,7 @@ void cliprdr_process_format_list(cliprdrPlugin* cliprdr, wStream* s, UINT32 data
dataLen = formatList.dataLen;
Stream_Rewind(s, dataLen);
formats = (CLIPRDR_FORMAT*) malloc(sizeof(CLIPRDR_FORMAT) * formatList.numFormats);
formats = (CLIPRDR_FORMAT*) calloc(formatList.numFormats, sizeof(CLIPRDR_FORMAT));
if (!formats)
return;
@ -175,6 +175,7 @@ void cliprdr_process_format_list(cliprdrPlugin* cliprdr, wStream* s, UINT32 data
}
else
{
formats[index].formatName = NULL;
Stream_Seek(s, 2);
dataLen -= 2;
}