about summary refs log tree commit diff
path: root/elf/dlopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dlopen.c')
-rw-r--r--elf/dlopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dlopen.c b/elf/dlopen.c
index 74ab8bb715..e261fcadd9 100644
--- a/elf/dlopen.c
+++ b/elf/dlopen.c
@@ -28,7 +28,7 @@ dlopen (const char *file, int mode)
 
   void doit (void)
     {
-      new = _dl_open (_dl_loaded, file, mode);
+      new = _dl_open (_dl_loaded, file ?: "", mode);
     }
 
   return _dlerror_run (doit) ? NULL : new;