]> git.mxchange.org Git - flightgear.git/commitdiff
Fix an uninitialized value valgrind warning.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Sat, 29 May 2010 14:32:38 +0000 (16:32 +0200)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Sat, 29 May 2010 14:32:38 +0000 (16:32 +0200)
src/Input/FGMouseInput.cxx

index c0b7e3f87620169f7b43131d094f24ae109a74af..16bb7883e8a833cae35fb762dba12647ceecd46c 100644 (file)
@@ -25,7 +25,7 @@
 #include "FGMouseInput.hxx"
 
 \f
-void ActivePickCallbacks::init( int b, const osgGA::GUIEventAdapter* ea ) 
+void ActivePickCallbacks::init( int b, const osgGA::GUIEventAdapter* ea )
 {
   // Get the list of hit callbacks. Take the first callback that
   // accepts the mouse button press and ignore the rest of them
@@ -44,7 +44,7 @@ void ActivePickCallbacks::init( int b, const osgGA::GUIEventAdapter* ea )
   }
 }
 
-void ActivePickCallbacks::update( double dt ) 
+void ActivePickCallbacks::update( double dt )
 {
   // handle repeatable mouse press events
   for( iterator mi = begin(); mi != end(); ++mi ) {
@@ -202,6 +202,7 @@ FGMouseInput::mouse::mouse ()
     save_y(-1),
     nModes(1),
     current_mode(0),
+    timeout(0),
     modes(NULL)
 {
 }