aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/System/DynamicLibrary.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/System/DynamicLibrary.cpp b/lib/System/DynamicLibrary.cpp
index 056fed0eb3..9bec68e5a9 100644
--- a/lib/System/DynamicLibrary.cpp
+++ b/lib/System/DynamicLibrary.cpp
@@ -107,7 +107,8 @@ void DynamicLibrary::LoadLibraryPermanently(const char* filename) {
a_handle = lt_dlopenext(filename);
if (a_handle == 0)
- throw std::string("Can't open :") + filename + ": " + lt_dlerror();
+ throw std::string("Can't open :") +
+ (filename ? filename : "<current process>") + ": " + lt_dlerror();
lt_dlmakeresident(a_handle);