Merge pull request #400 from nsacyber/tpm-version-fix

CPP Compiler fix
This commit is contained in:
Cyrus 2021-10-14 17:43:11 -04:00 committed by GitHub
commit e5470eded5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,7 +158,7 @@ int main(void) {
// We only need to collect the following data from the TPM.
string manufacturer;
string majorVersion;
float minorVersion;
float minorVersion = 0.0f;
for (size_t i = 0; i < capability_data.data.tpmProperties.count; ++i) {
TPMS_TAGGED_PROPERTY & p