From 4e8992d8c1b7f0d7e97a725928b606281271beed Mon Sep 17 00:00:00 2001 From: Don BURNS Date: Wed, 5 Nov 2003 04:58:18 +0000 Subject: [PATCH] MIssing check for ptr == NULL at line 227 in Registry.cpp --- src/osgDB/Registry.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osgDB/Registry.cpp b/src/osgDB/Registry.cpp index 465262b13..65cad928b 100644 --- a/src/osgDB/Registry.cpp +++ b/src/osgDB/Registry.cpp @@ -224,6 +224,7 @@ void Registry::initLibraryFilePathList() if( !(ptr = getenv( "LD_LIBRARYN32_PATH" ))) ptr = getenv( "LD_LIBRARY_PATH" ); + if( ptr ) { convertStringPathIntoFilePathList(ptr,_libraryFilePath); }