EndsWith now accepts std::string suffixes.
Bug: N/A Test: ran tests Change-Id: I947a94f1ef950452fb3f90b31448d915a12eb2ac
This commit is contained in:
parent
777d7c7914
commit
6db9af0392
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ static int dl_callback(struct dl_phdr_info *info, size_t /* size */, void *data)
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (android::base::EndsWith(info->dlpi_name, suffix.c_str())) {
|
||||
if (android::base::EndsWith(info->dlpi_name, suffix)) {
|
||||
std::string* path = reinterpret_cast<std::string*>(data);
|
||||
*path = info->dlpi_name;
|
||||
return 1; // found
|
||||
|
|
Loading…
Reference in a new issue