summaryrefslogtreecommitdiff
path: root/libartbase/base/file_utils.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2018-05-21 14:17:59 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2018-05-21 14:22:28 +0100
commite64d58c983fd44af319e2a5140f02b7ecbfccd91 (patch)
tree5fe9b46d815c7f4d41600b744a973e03db5ca8fc /libartbase/base/file_utils.cc
parente937c045a50b414411db058d32d8f689fb596e2e (diff)
Fix typo that leads to crash.
Typo got introduced in: https://android-review.googlesource.com/#/c/platform/art/+/682841/ bug: 80004139 Test: 677-fsi2 Change-Id: I2744257afd49ee069d87b2637c1cd3427ca61927
Diffstat (limited to 'libartbase/base/file_utils.cc')
-rw-r--r--libartbase/base/file_utils.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libartbase/base/file_utils.cc b/libartbase/base/file_utils.cc
index 9450e1e8c1..56934aca1f 100644
--- a/libartbase/base/file_utils.cc
+++ b/libartbase/base/file_utils.cc
@@ -264,7 +264,8 @@ std::string ReplaceFileExtension(const std::string& filename, const std::string&
bool LocationIsOnSystem(const char* path) {
UniqueCPtr<const char[]> full_path(realpath(path, nullptr));
- return path != nullptr && android::base::StartsWith(full_path.get(), GetAndroidRoot().c_str());
+ return full_path != nullptr &&
+ android::base::StartsWith(full_path.get(), GetAndroidRoot().c_str());
}
bool LocationIsOnSystemFramework(const char* full_path) {