From 93f1413db9efe3f100895b3267dace76cc232d84 Mon Sep 17 00:00:00 2001 From: Brian Ferri Date: Fri, 19 Dec 2025 10:49:36 +0100 Subject: [PATCH] fix: Invalid operands to binary expression --- modules/core/src/opencl/runtime/opencl_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/opencl/runtime/opencl_core.cpp b/modules/core/src/opencl/runtime/opencl_core.cpp index 37ab5f104c..65557537b4 100644 --- a/modules/core/src/opencl/runtime/opencl_core.cpp +++ b/modules/core/src/opencl/runtime/opencl_core.cpp @@ -93,7 +93,7 @@ static void* AppleCLGetProcAddress(const char* name) handle = dlopen(path.c_str(), RTLD_LAZY | RTLD_GLOBAL); if (handle == NULL) { - if (path != NULL && path != defaultPath) + if (!path.empty() && path != defaultPath) fprintf(stderr, ERROR_MSG_CANT_LOAD); } else if (dlsym(handle, OPENCL_FUNC_TO_CHECK_1_1) == NULL)