Merge "Nativeloader: Restrict anonymous namespace creation"

This commit is contained in:
Treehugger Robot 2019-04-29 16:08:15 +00:00 committed by Gerrit Code Review
commit d21a090f79

View file

@ -220,7 +220,9 @@ class LibraryNamespaces {
}
}
if (!initialized_ && !InitPublicNamespace(library_path.c_str(), error_msg)) {
// Initialize the anonymous namespace with the first non-empty library path.
if (!library_path.empty() && !initialized_ &&
!InitPublicNamespace(library_path.c_str(), error_msg)) {
return nullptr;
}