Merge pull request #68 from pali/master Show "(null)" in error message when passed filname to dlopen() was NULL and error occurred
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
{