aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32/MsgWindow.cxx
diff options
context:
space:
mode:
authorPeter Åstrand <astrand@cendio.se>2008-12-10 10:49:58 +0000
committerPeter Åstrand <astrand@cendio.se>2008-12-10 10:49:58 +0000
commit7c0e2298b376182479e47b934a8ef7c0154854cd (patch)
tree192e00a0f2e90809ccd342bf2bac3c889c587c98 /win/rfb_win32/MsgWindow.cxx
parentddcdbeab85d8c87016cf0e2a5a12724f226fde64 (diff)
downloadtigervnc-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.cxx2
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);