summaryrefslogtreecommitdiff
path: root/services/incremental/path.cpp
diff options
context:
space:
mode:
authorYurii Zubrytskyi <zyy@google.com>2020-04-22 00:38:21 -0700
committerYurii Zubrytskyi <zyy@google.com>2020-04-22 00:39:44 -0700
commit529a37d3cb69dd2d8012c9cfce1d27d49ec727d1 (patch)
treee633a0fba6ac7569ed7c2052fd05ee1a39bce95d /services/incremental/path.cpp
parent9c5a02c269f63b1a331be6ec07747ed8ef608c10 (diff)
[incfs] Fix bad path::join() path preparation
Bug: 151241369 Test: atest IncrementalServiceTest Change-Id: I6e7655634de722c46e96e66b58c0c4c8e5098874
Diffstat (limited to 'services/incremental/path.cpp')
-rw-r--r--services/incremental/path.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/incremental/path.cpp b/services/incremental/path.cpp
index 0d86f2a984d6..338659d40b46 100644
--- a/services/incremental/path.cpp
+++ b/services/incremental/path.cpp
@@ -44,7 +44,7 @@ bool PathLess::operator()(std::string_view l, std::string_view r) const {
PathCharsLess());
}
-static void preparePathComponent(std::string_view path, bool trimFront) {
+static void preparePathComponent(std::string_view& path, bool trimFront) {
if (trimFront) {
while (!path.empty() && path.front() == '/') {
path.remove_prefix(1);