Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
unix: reset error status in uv_dlopen()
Fixes a bug where uv_dlopen() mistakenly reported failure because of previous
errors.
  • Loading branch information
bnoordhuis committed Jun 11, 2012
1 parent e0c6114 commit 84f0d96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/dl.c
Expand Up @@ -31,6 +31,7 @@ static int uv__dlerror(uv_lib_t* lib);


int uv_dlopen(const char* filename, uv_lib_t* lib) {
dlerror(); /* Reset error status. */
lib->errmsg = NULL;
lib->handle = dlopen(filename, RTLD_LAZY);
return uv__dlerror(lib);
Expand Down

0 comments on commit 84f0d96

Please sign in to comment.