summaryrefslogtreecommitdiff
path: root/src/os_posix/os_dlopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_posix/os_dlopen.c')
-rw-r--r--src/os_posix/os_dlopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_posix/os_dlopen.c b/src/os_posix/os_dlopen.c
index 9a74eb4813d..ad1fcc90150 100644
--- a/src/os_posix/os_dlopen.c
+++ b/src/os_posix/os_dlopen.c
@@ -19,7 +19,7 @@ __wt_dlopen(WT_SESSION_IMPL *session, const char *path, WT_DLH **dlhp)
WT_DLH *dlh;
WT_RET(__wt_calloc_one(session, &dlh));
- WT_ERR(__wt_strdup(session, path, &dlh->name));
+ WT_ERR(__wt_strdup(session, path == NULL ? "local" : path, &dlh->name));
if ((dlh->handle = dlopen(path, RTLD_LAZY)) == NULL)
WT_ERR_MSG(