Commit 32be076553649fda2f99748e0e982c08b10a78ed

Silvio Traversaro 2020-02-22T13:54:54

Merge pull request #68 from pali/master Show "(null)" in error message when passed filname to dlopen() was NULL and error occurred

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/dlfcn.c b/dlfcn.c
index e13c631..2497a39 100644
--- a/dlfcn.c
+++ b/dlfcn.c
@@ -233,7 +233,7 @@ void *dlopen( const char *file, int mode )
         hModule = GetModuleHandle( NULL );
 
         if( !hModule )
-            save_err_ptr_str( file );
+            save_err_str( "(null)" );
     }
     else
     {