Merge "Nativeloader: Restrict anonymous namespace creation" into qt-dev
This commit is contained in:
commit
4b7e7d7a6b
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue