]> git.saurik.com Git - wxWidgets.git/commitdiff
suppressed compiler warning about unitialised umask value
authorKarsten Ballüder <ballueder@usa.net>
Fri, 30 Apr 1999 10:30:19 +0000 (10:30 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Fri, 30 Apr 1999 10:30:19 +0000 (10:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/file.cpp

index b29367e38965c68eee77de20a3a4f7f70217ada9..3cd684587a044788484f9ef89e25784831ef4d78 100644 (file)
@@ -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;