]> source.dussan.org Git - tigervnc.git/commitdiff
Avoid using result variable uninitialized
authorPeter Åstrand <astrand@cendio.se>
Thu, 11 Dec 2008 09:09:07 +0000 (09:09 +0000)
committerPeter Åstrand <astrand@cendio.se>
Thu, 11 Dec 2008 09:09:07 +0000 (09:09 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3383 3789f03b-4d11-0410-bbf8-ca57d06f2519

win/vncviewer/DesktopWindow.cxx

index 117a27a978187c635f54cfd9de3bd6d7a2999bdb..93a3ab6936ae79eae0c4b1a7299e195921b1eceb 100644 (file)
@@ -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)