Small bug in DynamicLibrary.cpp ptr was not being checked for NULL

This commit is contained in:
Don BURNS
2003-11-05 04:56:08 +00:00
parent d493309b69
commit d56ef40d7d

View File

@@ -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;
}