diff options
author | Jack Lloyd <[email protected]> | 2020-09-26 14:00:44 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2020-09-26 14:00:44 -0400 |
commit | 1841a569f7fd058897c619e450e5c41cc1c5af7a (patch) | |
tree | 8b79f23dceba799944c6fdc86567df881dab317f /src/lib | |
parent | cf51b31c44ffc168a2364919298ce5069094c972 (diff) |
Fix initialiation of CPUID fields
On systems without any actual detection logic this left the
field uninitialized. Caught by GCC 9 on S390x
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/utils/cpuid/cpuid.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/utils/cpuid/cpuid.cpp b/src/lib/utils/cpuid/cpuid.cpp index 4196afd14..bd38d5829 100644 --- a/src/lib/utils/cpuid/cpuid.cpp +++ b/src/lib/utils/cpuid/cpuid.cpp @@ -92,11 +92,13 @@ void CPUID::initialize() CPUID::CPUID_Data::CPUID_Data() { + m_cache_line_size = 0; + m_processor_features = 0; + #if defined(BOTAN_TARGET_CPU_IS_PPC_FAMILY) || \ defined(BOTAN_TARGET_CPU_IS_ARM_FAMILY) || \ defined(BOTAN_TARGET_CPU_IS_X86_FAMILY) - m_cache_line_size = 0; m_processor_features = detect_cpu_features(&m_cache_line_size); #endif |