diff options
Diffstat (limited to 'libdexfile/dex/dex_file_loader.cc')
-rw-r--r-- | libdexfile/dex/dex_file_loader.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdexfile/dex/dex_file_loader.cc b/libdexfile/dex/dex_file_loader.cc index 0fc99357e3..0266c41726 100644 --- a/libdexfile/dex/dex_file_loader.cc +++ b/libdexfile/dex/dex_file_loader.cc @@ -141,8 +141,8 @@ bool DexFileLoader::IsVersionAndMagicValid(const uint8_t* magic) { return false; } -bool DexFileLoader::IsMultiDexLocation(const char* location) { - return strrchr(location, kMultiDexSeparator) != nullptr; +bool DexFileLoader::IsMultiDexLocation(std::string_view location) { + return location.find(kMultiDexSeparator) != std::string_view::npos; } std::string DexFileLoader::GetMultiDexClassesDexName(size_t index) { |