From f6db5df4c762bf6cb9fad1f5f39b7d19ac7093e0 Mon Sep 17 00:00:00 2001 From: darkstar Date: Tue, 30 Apr 2019 14:36:16 +0200 Subject: [PATCH] Fix uninitialized variable in the D2D code --- src/win/win_d2d.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win/win_d2d.cpp b/src/win/win_d2d.cpp index d56bffa..2144a00 100644 --- a/src/win/win_d2d.cpp +++ b/src/win/win_d2d.cpp @@ -8,7 +8,7 @@ * * Rendering module for Microsoft Direct2D. * - * Version: @(#)win_d2d.cpp 1.0.6 2019/04/29 + * Version: @(#)win_d2d.cpp 1.0.7 2019/04/29 * * Authors: Fred N. van Kempen, * David Hrdlicka, @@ -183,7 +183,7 @@ d2d_stretch(float *w, float *h, float *x, float *y) static void d2d_blit(bitmap_t *scr, int x, int y, int y1, int y2, int w, int h) { - ID2D1Bitmap *fs_bitmap; + ID2D1Bitmap *fs_bitmap = 0; ID2D1RenderTarget *RT; D2D1_RECT_U rectU; HRESULT hr = S_OK;