Minor code cleanup based on valgrind analysis

This commit is contained in:
Rod Smith
2023-03-10 13:28:00 -05:00
parent 0e7d63502f
commit cb4bf32074
2 changed files with 3 additions and 0 deletions

1
gpt.cc
View File

@@ -80,6 +80,7 @@ GPTData::GPTData(void) {
beQuiet = 0;
whichWasUsed = use_new;
mainHeader.numParts = 0;
mainHeader.firstUsableLBA = 0;
mainHeader.lastUsableLBA = 0;
numParts = 0;
SetGPTSize(NUM_GPT_ENTRIES);