libbpf_android/Loader - fixes performance-faster-string-find warning am: 428843de55
Change-Id: I296da6379e4da03247bb77651f48f2030f74787f
This commit is contained in:
commit
39ab9d3ff7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue