libbpf_android/Loader - fixes performance-faster-string-find warning am: 428843de55

Change-Id: I296da6379e4da03247bb77651f48f2030f74787f
This commit is contained in:
Maciej Żenczykowski 2020-04-24 04:38:34 +00:00 committed by Automerger Merge Worker
commit 39ab9d3ff7

View file

@ -554,7 +554,7 @@ static int loadCodeSections(const char* elfPath, vector<codeSection>& cs, const
// strip any potential $foo suffix
// this can be used to provide duplicate programs
// conditionally loaded based on running kernel version
name = name.substr(0, name.find_last_of("$"));
name = name.substr(0, name.find_last_of('$'));
bool reuse = false;
// Format of pin location is