Skip to content
Snippets Groups Projects
Commit c9a7180e authored by Julien Malik's avatar Julien Malik
Browse files

BUG: fix ITK bug in dynamic library loader. Bug reported at...

BUG: fix ITK bug in dynamic library loader. Bug reported at https://itk.icts.uiowa.edu/jira/browse/ITK-2694
parent 01053601
No related branches found
No related tags found
No related merge requests found
......@@ -301,7 +301,8 @@ NameIsSharedLibrary(const char* name)
#endif
std::string sname = name;
if ( sname.rfind(extension) == sname.size() - extension.size() )
size_t extensionpos = sname.rfind(extension);
if ( extensionpos != std::string::npos && extensionpos == sname.size() - extension.size() )
{
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment