From 35a70395155c6093dbb7bbe46ffe0f19689601cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20=C3=85strand?= Date: Thu, 11 Dec 2008 09:08:33 +0000 Subject: [PATCH] Avoid using result variable uninitialized git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3382 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- win/vncviewer/DesktopWindow.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/vncviewer/DesktopWindow.cxx b/win/vncviewer/DesktopWindow.cxx index 1793faa9..117a27a9 100644 --- a/win/vncviewer/DesktopWindow.cxx +++ b/win/vncviewer/DesktopWindow.cxx @@ -130,7 +130,7 @@ public: }; LRESULT CALLBACK FrameProc(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); else if (msg == WM_DESTROY) -- 2.39.5