VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Platform
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2020-06-26 01:11:55 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2020-06-26 01:22:03 +0200
commit53070f8bb58e04f28d7e26ff7ddbac9307d01c96 (patch)
tree4634d5be4e5c103cb10b3e0d8dd6489bf84f409c /src/Platform
parent9a890ec2fc10e5bef4e2d3b9800186ec1673cde1 (diff)
downloadVeraCrypt-53070f8bb58e04f28d7e26ff7ddbac9307d01c96.tar.gz
VeraCrypt-53070f8bb58e04f28d7e26ff7ddbac9307d01c96.zip
Linux/MacOSX: fix warning reported by static code analysis tool about possible undefined output value in UserPreferences::SetValue and missing initialization of member variables in File constructor
Diffstat (limited to 'src/Platform')
-rw-r--r--src/Platform/File.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Platform/File.h b/src/Platform/File.h
index 09924b29..a8befe38 100644
--- a/src/Platform/File.h
+++ b/src/Platform/File.h
@@ -54,7 +54,11 @@ namespace VeraCrypt
typedef int SystemFileHandleType;
#endif
- File () : FileIsOpen (false), SharedHandle (false) { }
+ File () : FileIsOpen (false), mFileOpenFlags (FlagsNone), SharedHandle (false), FileHandle (0)
+#ifndef TC_WINDOWS
+ ,AccTime(0), ModTime (0)
+#endif
+ { }
virtual ~File ();
void AssignSystemHandle (SystemFileHandleType openFileHandle, bool sharedHandle = true)