]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed possible usage of uninitialized variable.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Fri, 28 Nov 2003 22:46:27 +0000 (22:46 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Fri, 28 Nov 2003 22:46:27 +0000 (22:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filefn.cpp
src/mac/carbon/scrolbar.cpp
src/mac/scrolbar.cpp

index 0df53ba15806e471152452e80f1854feddfd7b87..329a52695c2d485a3d746b5635800029612715bf 100644 (file)
@@ -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;
index 680bc2f33d19f1c21fa5789e20b3953b240a4c38..3b08c25ecccd30e61c82e8e4cacf4cf92d2b7982 100644 (file)
@@ -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 )
index 680bc2f33d19f1c21fa5789e20b3953b240a4c38..3b08c25ecccd30e61c82e8e4cacf4cf92d2b7982 100644 (file)
@@ -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 )