Merge "Correctly handle the case of empty LD_PRELOAD entries"
This commit is contained in:
commit
5fa5717674
1 changed files with 3 additions and 0 deletions
|
@ -475,6 +475,9 @@ static void parse_LD_PRELOAD(const char* path) {
|
|||
if (path != nullptr) {
|
||||
// We have historically supported ':' as well as ' ' in LD_PRELOAD.
|
||||
g_ld_preload_names = android::base::Split(path, " :");
|
||||
std::remove_if(g_ld_preload_names.begin(),
|
||||
g_ld_preload_names.end(),
|
||||
[] (const std::string& s) { return s.empty(); });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue