VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/BootEncryption.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-07-09 02:01:57 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 23:20:29 +0100
commitf19cfb336150358214572a35ebe6c97c4975d6a0 (patch)
tree9e611ba28484965be19b102c203f36306f252eba /src/Common/BootEncryption.cpp
parent9bb962c8bbf5fffde8a884975d7108c6783ab876 (diff)
downloadVeraCrypt-f19cfb336150358214572a35ebe6c97c4975d6a0.tar.gz
VeraCrypt-f19cfb336150358214572a35ebe6c97c4975d6a0.zip
Static Code Analysis : Correctly initialize member variables in various constructors
Diffstat (limited to 'src/Common/BootEncryption.cpp')
-rw-r--r--src/Common/BootEncryption.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Common/BootEncryption.cpp b/src/Common/BootEncryption.cpp
index 29df5569..1a467eed 100644
--- a/src/Common/BootEncryption.cpp
+++ b/src/Common/BootEncryption.cpp
@@ -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();
}