Skip to content

Commit

Permalink
CPUInfo: make sure m_cpuFeatures is initialized
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
peat-psuwit authored Sep 3, 2024
1 parent 2247607 commit 5feadf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/utils/CPUInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<CoreInfo> m_cores;
};

0 comments on commit 5feadf7

Please sign in to comment.