X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5a3912f2aba8f5232315f7ca2206c50295ec21ea..64f4500a4a6905623685e67efc65b0d856aff393:/src/common/filefn.cpp?ds=sidebyside diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 0df53ba158..92692711ad 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; @@ -1396,7 +1396,7 @@ bool wxPathExists(const wxChar *pszPathName) #ifdef __OS2__ // OS/2 can't handle "d:", it wants either "d:\" or "d:." - if (strPath.length() == 2 && strPath[1] == _T(':')) + if (strPath.length() == 2 && strPath[1u] == _T(':')) strPath << _T('.'); #endif