From: Peter Åstrand Date: Thu, 11 Dec 2008 09:09:07 +0000 (+0000) Subject: Avoid using result variable uninitialized X-Git-Tag: v0.0.90~290 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9ae9d0f6c4256049fe292e39292ffb3c7a897932;p=tigervnc.git Avoid using result variable uninitialized git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3383 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/win/vncviewer/DesktopWindow.cxx b/win/vncviewer/DesktopWindow.cxx index 117a27a9..93a3ab69 100644 --- a/win/vncviewer/DesktopWindow.cxx +++ b/win/vncviewer/DesktopWindow.cxx @@ -60,7 +60,7 @@ public: }; LRESULT CALLBACK DesktopWindowProc(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)