X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe99e2858a1c58e8e0e9484d6415cdf2d40cf043..0c589ad076cb531a3ef7808aaedadc03c8286942:/src/common/file.cpp diff --git a/src/common/file.cpp b/src/common/file.cpp index f563a5cd3d..3cd684587a 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -502,7 +502,7 @@ bool wxTempFile::Open(const wxString& strName) int access = wxS_DEFAULT; #ifdef __UNIX__ // create the file with the same mode as the original one under Unix - mode_t umaskOld; + mode_t umaskOld = 0; // just to suppress compiler warning bool changedUmask; struct stat st; @@ -523,11 +523,11 @@ bool wxTempFile::Open(const wxString& strName) { // file probably didn't exist, just create with default mode _using_ // user's umask (new files creation should respet umask) - changedUmask = TRUE; + changedUmask = FALSE; } #endif // Unix - bool ok = m_file.Open(m_strTemp, wxFile::write, access); + bool ok = m_file.Open(m_strTemp, wxFile::write, access); #ifdef __UNIX__ if ( changedUmask )