A compiler error was happening with an uninitialized float variable.

This commit is contained in:
Cyrus 2021-10-14 13:58:59 -04:00
parent e8b320e203
commit ff56d83443

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