mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Static Code Analysis : Correctly initialize member variables in various constructors
This commit is contained in:
@@ -375,6 +375,13 @@ namespace VeraCrypt
|
||||
SelectedEncryptionAlgorithmId (0),
|
||||
VolumeHeaderValid (false)
|
||||
{
|
||||
HiddenOSCandidatePartition.IsGPT = FALSE;
|
||||
HiddenOSCandidatePartition.Number = (size_t) -1;
|
||||
DriveConfig.DriveNumber = -1;
|
||||
DriveConfig.ExtraBootPartitionPresent = false;
|
||||
DriveConfig.SystemLoaderPresent = false;
|
||||
DriveConfig.InitialUnallocatedSpace = 0;
|
||||
DriveConfig.TotalUnallocatedSpace = 0;
|
||||
Elevator::AddReference();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user