aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/dlfcn.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/dlfcn.cc')
-rw-r--r--winsup/cygwin/dlfcn.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/dlfcn.cc b/winsup/cygwin/dlfcn.cc
index a853513..73c44f1 100644
--- a/winsup/cygwin/dlfcn.cc
+++ b/winsup/cygwin/dlfcn.cc
@@ -177,7 +177,8 @@ dlopen (const char *name, int)
{
/* handle for the named library */
const char *fullpath = get_full_path_of_dll (name);
- ret = (void *) LoadLibrary (fullpath);
+ if (fullpath)
+ ret = (void *) LoadLibrary (fullpath);
}
if (!ret)