From: Mathias Froehlich Date: Sat, 29 May 2010 14:32:38 +0000 (+0200) Subject: Fix an uninitialized value valgrind warning. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1114c49165125deefadf25b5c448e246cec74a45;p=flightgear.git Fix an uninitialized value valgrind warning. --- diff --git a/src/Input/FGMouseInput.cxx b/src/Input/FGMouseInput.cxx index c0b7e3f87..16bb7883e 100644 --- a/src/Input/FGMouseInput.cxx +++ b/src/Input/FGMouseInput.cxx @@ -25,7 +25,7 @@ #include "FGMouseInput.hxx" -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) { }