Fixed uninitialized variable.

This commit is contained in:
Armin Novak 2017-12-12 10:35:02 +01:00
parent c91900dfb3
commit 0a9ef97a57

View File

@ -241,6 +241,12 @@ static int winpr_image_bitmap_read_fp(wImage* image, FILE* fp)
wStream* s;
WINPR_BITMAP_FILE_HEADER bf;
WINPR_BITMAP_INFO_HEADER bi;
if (!image || !fp)
return -1;
image->data = NULL;
s = Stream_New(NULL, sizeof(WINPR_BITMAP_FILE_HEADER) + sizeof(WINPR_BITMAP_INFO_HEADER));
if (!s)