From e2e96b8c55ad8ac92a207a2ac346c50cb3fbc252 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Fri, 30 Aug 2013 16:31:40 +0200 Subject: [PATCH] Fixed clang issues. --- libfreerdp/core/window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libfreerdp/core/window.c b/libfreerdp/core/window.c index ea0a40ff6..652aa536d 100644 --- a/libfreerdp/core/window.c +++ b/libfreerdp/core/window.c @@ -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)