From 3381062ab9e32bb062732cf6aecf4c1f99b73b4d Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sat, 14 Sep 2024 21:53:43 +0800 Subject: [PATCH] CPU (FreeBSD): fix cpu temperature detection --- src/detection/cpu/cpu_bsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/cpu/cpu_bsd.c b/src/detection/cpu/cpu_bsd.c index edb1583bd..4b073f9d5 100644 --- a/src/detection/cpu/cpu_bsd.c +++ b/src/detection/cpu/cpu_bsd.c @@ -46,7 +46,7 @@ const char* ffDetectCPUImpl(const FFCPUOptions* options, FFCPUResult* cpu) if (options->temp) { - if (!ffDetectCpuTemp(&cpu->temperature)) + if (ffDetectCpuTemp(&cpu->temperature) != NULL) ffDetectThermalTemp(&cpu->temperature); }