aboutsummaryrefslogtreecommitdiffstats
path: root/win/vncviewer
diff options
context:
space:
mode:
authorPeter Åstrand <astrand@cendio.se>2008-12-11 09:09:07 +0000
committerPeter Åstrand <astrand@cendio.se>2008-12-11 09:09:07 +0000
commit9ae9d0f6c4256049fe292e39292ffb3c7a897932 (patch)
tree644ded735d8272fe905511c3d6f3c199efb9588a /win/vncviewer
parent35a70395155c6093dbb7bbe46ffe0f19689601cb (diff)
downloadtigervnc-9ae9d0f6c4256049fe292e39292ffb3c7a897932.tar.gz
tigervnc-9ae9d0f6c4256049fe292e39292ffb3c7a897932.zip
Avoid using result variable uninitialized
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3383 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win/vncviewer')
-rw-r--r--win/vncviewer/DesktopWindow.cxx2
1 files changed, 1 insertions, 1 deletions
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)