From 7c0e2298b376182479e47b934a8ef7c0154854cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20=C3=85strand?= Date: Wed, 10 Dec 2008 10:49:58 +0000 Subject: [PATCH] Avoid using result variable uninitialized git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3359 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- win/rfb_win32/MsgWindow.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/rfb_win32/MsgWindow.cxx b/win/rfb_win32/MsgWindow.cxx index 306b1c3a..1f2299eb 100644 --- a/win/rfb_win32/MsgWindow.cxx +++ b/win/rfb_win32/MsgWindow.cxx @@ -43,7 +43,7 @@ public: }; LRESULT CALLBACK MsgWindowProc(HWND wnd, UINT msg, WPARAM wParam, LPARAM lParam) { - LRESULT result; + LRESULT result = 0; if (msg == WM_CREATE) SetWindowLong(wnd, GWL_USERDATA, (long)((CREATESTRUCT*)lParam)->lpCreateParams); -- 2.39.5