winex11.drv: initialize drawable (clang)

André Hentschel nerv at dawncrow.de
Tue Jan 25 11:49:04 CST 2011


http://austinenglish.com/logs/clang_analyzer/report-dRpLpZ.html#EndPath
then the if condition is reliable
---
 dlls/winex11.drv/window.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 65c046b..d50c537 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -2237,6 +2237,7 @@ void CDECL X11DRV_GetDC( HDC hdc, HWND hwnd, HWND top, const RECT *win_rect,
     HWND parent;
 
     escape.code        = X11DRV_SET_DRAWABLE;
+    escape.drawable    = 0;
     escape.mode        = IncludeInferiors;
     escape.fbconfig_id = 0;
     escape.gl_drawable = 0;
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list