We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
/sys/devices/system/cpu/cpufreq/
1 parent 0a61403 commit 4a7e60eCopy full SHA for 4a7e60e
src/detection/cpu/cpu_linux.c
@@ -107,6 +107,8 @@ static bool detectFrequency(FFCPUResult* cpu)
107
{
108
FF_STRBUF_AUTO_DESTROY path = ffStrbufCreateS("/sys/devices/system/cpu/cpufreq/");
109
FF_AUTO_CLOSE_DIR DIR* dir = opendir(path.chars);
110
+ if (!dir) return false;
111
+
112
FF_STRBUF_AUTO_DESTROY buffer = ffStrbufCreate();
113
uint32_t baseLen = path.length;
114
bool flag = false;
0 commit comments