From: Peter Åstrand Date: Thu, 11 Dec 2008 09:08:33 +0000 (+0000) Subject: Avoid using result variable uninitialized X-Git-Tag: v0.0.90~291 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=35a70395155c6093dbb7bbe46ffe0f19689601cb;p=tigervnc.git Avoid using result variable uninitialized git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3382 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- 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)