summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibuv/src/unix/dl.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-01-13 20:46:20 (GMT)
committerBrad King <brad.king@kitware.com>2022-01-13 20:46:20 (GMT)
commitea70fb3905d98344daff63b2ed505ba294785326 (patch)
tree2a5d333d16650fc476963fa6bc4ff71944190742 /Utilities/cmlibuv/src/unix/dl.c
parenta20d9e1463eaa8df1c11fcc244d324f2344e21f5 (diff)
parent09ec116d91c571dff0f108c23eabbcccdca767fa (diff)
downloadCMake-ea70fb3905d98344daff63b2ed505ba294785326.zip
CMake-ea70fb3905d98344daff63b2ed505ba294785326.tar.gz
CMake-ea70fb3905d98344daff63b2ed505ba294785326.tar.bz2
Merge branch 'upstream-libuv' into update-libuv
# By libuv upstream * upstream-libuv: libuv 2022-01-13 (2fbfa035)
Diffstat (limited to 'Utilities/cmlibuv/src/unix/dl.c')
-rw-r--r--Utilities/cmlibuv/src/unix/dl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmlibuv/src/unix/dl.c b/Utilities/cmlibuv/src/unix/dl.c
index fc1c052..80b3333 100644
--- a/Utilities/cmlibuv/src/unix/dl.c
+++ b/Utilities/cmlibuv/src/unix/dl.c
@@ -53,7 +53,7 @@ void uv_dlclose(uv_lib_t* lib) {
int uv_dlsym(uv_lib_t* lib, const char* name, void** ptr) {
dlerror(); /* Reset error status. */
*ptr = dlsym(lib->handle, name);
- return uv__dlerror(lib);
+ return *ptr ? 0 : uv__dlerror(lib);
}