From b233afc07665527c526392ba3353a4680b8f215c Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Mon, 23 Jan 2017 13:27:30 +0100 Subject: [PATCH] Fixed uninitialized variable warning. --- libfreerdp/codec/planar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libfreerdp/codec/planar.c b/libfreerdp/codec/planar.c index 585634b3d..49278953e 100644 --- a/libfreerdp/codec/planar.c +++ b/libfreerdp/codec/planar.c @@ -224,7 +224,7 @@ static INLINE INT32 planar_decompress_plane_rle(const BYTE* pSrcData, UINT32 Src } static INLINE BOOL writeLine(BYTE** ppRgba, UINT32 DstFormat, UINT32 width, const BYTE** ppR, - const BYTE** ppG, const BYTE** ppB, const BYTE** ppA) + const BYTE** ppG, const BYTE** ppB, const BYTE** ppA) { UINT32 x; @@ -1121,7 +1121,7 @@ BYTE* freerdp_bitmap_compress_planar(BITMAP_PLANAR_CONTEXT* context, UINT32 size; BYTE* dstp; UINT32 planeSize; - UINT32 dstSizes[4]; + UINT32 dstSizes[4] = { 0 }; BYTE FormatHeader = 0; if (!context || !context->rlePlanesBuffer)