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); }