From: Dimitri Schoolwerth Date: Fri, 28 Nov 2003 22:46:27 +0000 (+0000) Subject: Fixed possible usage of uninitialized variable. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/56fc3fa5b3be585a27af0ac3263350e16c992e41 Fixed possible usage of uninitialized variable. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 0df53ba158..329a52695c 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -913,7 +913,7 @@ wxString wxMacFSSpec2MacFilename( const FSSpec *spec ) int i; int j; OSErr theErr; - OSStatus theStatus; + OSStatus theStatus = noErr; Boolean isDirectory = FALSE; Str255 theParentPath = "\p"; FSSpec theParentSpec; diff --git a/src/mac/carbon/scrolbar.cpp b/src/mac/carbon/scrolbar.cpp index 680bc2f33d..3b08c25ecc 100644 --- a/src/mac/carbon/scrolbar.cpp +++ b/src/mac/carbon/scrolbar.cpp @@ -116,7 +116,7 @@ void wxScrollBar::MacHandleControlClick( WXWidget control , wxInt16 controlpart int maxPos = GetControl32BitMaximum( (ControlHandle) m_macControl) ; wxEventType scrollEvent = wxEVT_NULL; - int nScrollInc; + int nScrollInc = 0; // all events have already been reported during mouse down, except for THUMBRELEASE if ( !mouseStillDown && controlpart !=kControlIndicatorPart ) diff --git a/src/mac/scrolbar.cpp b/src/mac/scrolbar.cpp index 680bc2f33d..3b08c25ecc 100644 --- a/src/mac/scrolbar.cpp +++ b/src/mac/scrolbar.cpp @@ -116,7 +116,7 @@ void wxScrollBar::MacHandleControlClick( WXWidget control , wxInt16 controlpart int maxPos = GetControl32BitMaximum( (ControlHandle) m_macControl) ; wxEventType scrollEvent = wxEVT_NULL; - int nScrollInc; + int nScrollInc = 0; // all events have already been reported during mouse down, except for THUMBRELEASE if ( !mouseStillDown && controlpart !=kControlIndicatorPart )