From d56ef40d7d22035fd5c1293a31f7fea6de753cac Mon Sep 17 00:00:00 2001 From: Don BURNS Date: Wed, 5 Nov 2003 04:56:08 +0000 Subject: [PATCH] Small bug in DynamicLibrary.cpp ptr was not being checked for NULL --- src/osgDB/DynamicLibrary.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osgDB/DynamicLibrary.cpp b/src/osgDB/DynamicLibrary.cpp index 61f7c512b..96853cb25 100644 --- a/src/osgDB/DynamicLibrary.cpp +++ b/src/osgDB/DynamicLibrary.cpp @@ -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; }