From Farshid Lashkari, "A while back the behaviour of extension alias' was modified so that

the user can override existing alias'. The change allowed for circular
references, so the createLibraryNameForExtension would get caught in
an endless loop. The following fix will catch circular references."
This commit is contained in:
Robert Osfield
2006-03-08 15:30:07 +00:00
parent c69c9d2070
commit 7604146d3f

View File

@@ -469,7 +469,7 @@ std::string Registry::createLibraryNameForExtension(const std::string& ext)
{
ExtensionAliasMap::iterator itr=_extAliasMap.find(ext);
if (itr!=_extAliasMap.end()) return createLibraryNameForExtension(itr->second);
if (itr!=_extAliasMap.end() && ext != itr->second) return createLibraryNameForExtension(itr->second);
#ifdef OSG_JAVA_BUILD
static std::string prepend = "java";