From 5feadf7473f2384c492142a7c47c9ce98e06df52 Mon Sep 17 00:00:00 2001 From: Ratchanan Srirattanamet Date: Wed, 4 Sep 2024 06:38:08 +0700 Subject: [PATCH] CPUInfo: make sure m_cpuFeatures is initialized m_cpuFeatures is OR'ed into in implementations, but seemingly none of them initialized this field before they OR into, so do it first in CCPUInfo class. --- xbmc/utils/CPUInfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbmc/utils/CPUInfo.h b/xbmc/utils/CPUInfo.h index a53ec29c6eebb..2d3c044248d45 100644 --- a/xbmc/utils/CPUInfo.h +++ b/xbmc/utils/CPUInfo.h @@ -115,7 +115,7 @@ class CCPUInfo std::size_t m_totalTime{0}; int m_cpuCount; - unsigned int m_cpuFeatures; + unsigned int m_cpuFeatures{0}; std::vector m_cores; };