diff options
author | Peter Åstrand <astrand@cendio.se> | 2008-12-10 10:49:58 +0000 |
---|---|---|
committer | Peter Åstrand <astrand@cendio.se> | 2008-12-10 10:49:58 +0000 |
commit | 7c0e2298b376182479e47b934a8ef7c0154854cd (patch) | |
tree | 192e00a0f2e90809ccd342bf2bac3c889c587c98 /win/rfb_win32/MsgWindow.cxx | |
parent | ddcdbeab85d8c87016cf0e2a5a12724f226fde64 (diff) | |
download | tigervnc-7c0e2298b376182479e47b934a8ef7c0154854cd.tar.gz tigervnc-7c0e2298b376182479e47b934a8ef7c0154854cd.zip |
Avoid using result variable uninitialized
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3359 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win/rfb_win32/MsgWindow.cxx')
-rw-r--r-- | win/rfb_win32/MsgWindow.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); |