From ae5689709c55c8a8184465e84a7e949b76195c03 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 11 Oct 2016 11:17:22 +0200 Subject: [PATCH] Fixed uninitialized variables. --- libfreerdp/gdi/test/TestGdiBitBlt.c | 10 +++++----- libfreerdp/gdi/test/TestGdiLine.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libfreerdp/gdi/test/TestGdiBitBlt.c b/libfreerdp/gdi/test/TestGdiBitBlt.c index e8ed0b1b5..64367e93c 100644 --- a/libfreerdp/gdi/test/TestGdiBitBlt.c +++ b/libfreerdp/gdi/test/TestGdiBitBlt.c @@ -443,8 +443,8 @@ static BOOL test_gdi_BitBlt(UINT32 SrcFormat, UINT32 DstFormat) BOOL rc = FALSE; BOOL failed = FALSE; UINT32 x; - HGDI_DC hdcSrc; - HGDI_DC hdcDst; + HGDI_DC hdcSrc = NULL; + HGDI_DC hdcDst = NULL; const UINT32 RawFormat = PIXEL_FORMAT_RGB8; struct test_bitblt tests[] = { @@ -491,9 +491,9 @@ static BOOL test_gdi_BitBlt(UINT32 SrcFormat, UINT32 DstFormat) {GDI_DPo, bmp_SRC, NULL} }; const UINT32 number_tests = sizeof(tests) / sizeof(tests[0]); - HGDI_BITMAP hBmpSrc; - HGDI_BITMAP hBmpDst; - HGDI_BITMAP hBmpDstOriginal; + HGDI_BITMAP hBmpSrc = NULL; + HGDI_BITMAP hBmpDst = NULL; + HGDI_BITMAP hBmpDstOriginal = NULL; HGDI_BRUSH brush; gdiPalette g; gdiPalette* hPalette = &g; diff --git a/libfreerdp/gdi/test/TestGdiLine.c b/libfreerdp/gdi/test/TestGdiLine.c index b6a815801..f85154ac0 100644 --- a/libfreerdp/gdi/test/TestGdiLine.c +++ b/libfreerdp/gdi/test/TestGdiLine.c @@ -670,8 +670,8 @@ int TestGdiLine(int argc, char* argv[]) for (i = 0; i < number_formats; i++) { - HGDI_DC hdc; - HGDI_PEN pen; + HGDI_DC hdc = NULL; + HGDI_PEN pen = NULL; HGDI_BITMAP hBmp = NULL; struct ropMap rop_map[] = {