diff options
Diffstat (limited to 'runtime/class_loader_context.cc')
-rw-r--r-- | runtime/class_loader_context.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/class_loader_context.cc b/runtime/class_loader_context.cc index 178c54fb6b..73546ed0a9 100644 --- a/runtime/class_loader_context.cc +++ b/runtime/class_loader_context.cc @@ -455,7 +455,8 @@ bool ClassLoaderContext::OpenDexFiles(const std::string& classpath_dir, // If path is relative, append it to the provided base directory. std::string location = cp_elem; if (location[0] != '/' && !classpath_dir.empty()) { - location = classpath_dir + (classpath_dir.back() == '/' ? "" : "/") + location; + location = + ART_FORMAT("{}{}{}", classpath_dir, classpath_dir.back() == '/' ? "" : "/", location); } // If file descriptors were provided for the class loader context dex paths, |