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

win/vncviewer/DesktopWindow.cxx

index 1793faa9a9f5c31ce5c6c134a115966f438d4df0..117a27a978187c635f54cfd9de3bd6d7a2999bdb 100644 (file)
@@ -130,7 +130,7 @@ public:
 };
 
 LRESULT CALLBACK FrameProc(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)