1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-12 03:18:26 -06:00

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

This commit is contained in:
Mounir IDRASSI
2020-06-26 01:11:55 +02:00
parent 9a890ec2fc
commit 53070f8bb5
2 changed files with 7 additions and 3 deletions

View File

@@ -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)