From: Peter Åstrand Date: Wed, 10 Dec 2008 10:49:58 +0000 (+0000) Subject: Avoid using result variable uninitialized X-Git-Tag: v0.0.90~310 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7c0e2298b376182479e47b934a8ef7c0154854cd;p=tigervnc.git Avoid using result variable uninitialized git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3359 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- 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);