Fixed clang issues.

This commit is contained in:
Armin Novak 2013-08-30 16:31:40 +02:00
parent ef91766cf3
commit e2e96b8c55

View File

@ -75,7 +75,8 @@ BOOL update_read_icon_info(wStream* s, ICON_INFO* icon_info)
free(icon_info->colorTable);
icon_info->colorTable = NULL;
}
Stream_Read(s, icon_info->colorTable, icon_info->cbColorTable);
if (icon_info->colorTable)
Stream_Read(s, icon_info->colorTable, icon_info->cbColorTable);
/* bitsColor */
if (icon_info->bitsColor == NULL)