commit | e85de5b103388f047cc307a362ee8cdc6ef010ec | [log] [tgz] |
---|---|---|
author | Christopher Ferris <cferris@google.com> | Wed May 25 20:37:45 2016 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed May 25 20:37:46 2016 +0000 |
tree | e0fa8c6804913a49e483808f8c1f3e8dabe1e8f7 | |
parent | 5fa57176746b78a3c42b909104d9cf4690ff14cb [diff] | |
parent | eab48032901e1555fae8e52ffb9571bcfcc466a9 [diff] |
Merge "Update documentation for malloc debug."
diff --git a/linker/linker.cpp b/linker/linker.cpp index 719b00a..9eb3a65 100644 --- a/linker/linker.cpp +++ b/linker/linker.cpp
@@ -475,6 +475,9 @@ 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(); }); } }