1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

Merge pull request #28246 from brianferri:4.x

fix: Invalid operands to binary expression
This commit is contained in:
Alexander Smorkalov
2025-12-19 15:12:31 +03:00
committed by GitHub
@@ -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)