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

win/rfb_win32/MsgWindow.cxx

index 306b1c3a5627fa1777ddeb9b5e1aa14a16efae7d..1f2299eb3a663844f49a8c56757dcae4949748bb 100644 (file)
@@ -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);