Small bug in DynamicLibrary.cpp ptr was not being checked for NULL
This commit is contained in:
@@ -126,6 +126,8 @@ DynamicLibrary::getLibraryHandle( const std::string& libraryName)
|
||||
return handle;
|
||||
#else // other unix
|
||||
handle = dlopen( libraryName.c_str(), RTLD_LAZY | RTLD_GLOBAL);
|
||||
if( handle == NULL )
|
||||
printf( "dlopen: %s\n", dlerror() );
|
||||
#endif
|
||||
return handle;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user