summaryrefslogtreecommitdiff
path: root/adb/client/file_sync_client.cpp
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-04-23 20:11:05 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-04-23 20:11:05 +0000
commit386e91d21c53f738fa0b1fe5d5267a15058e706d (patch)
treeb5383ea58a876712481e5ec2439e4a427844d66c /adb/client/file_sync_client.cpp
parent1b8c391c29d9541cc79e962843b9fa38fd3d58d0 (diff)
parentcb885c24fc57a06af6236470f4643c338295f363 (diff)
Merge "adb: Avoid extra string construction" into rvc-dev
Diffstat (limited to 'adb/client/file_sync_client.cpp')
-rw-r--r--adb/client/file_sync_client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/client/file_sync_client.cpp b/adb/client/file_sync_client.cpp
index 190c235396..e686973db4 100644
--- a/adb/client/file_sync_client.cpp
+++ b/adb/client/file_sync_client.cpp
@@ -617,7 +617,7 @@ class SyncConnection {
}
std::string path_and_mode = android::base::StringPrintf("%s,%d", path.c_str(), mode);
- if (!SendRequest(ID_SEND_V1, path_and_mode.c_str())) {
+ if (!SendRequest(ID_SEND_V1, path_and_mode)) {
Error("failed to send ID_SEND_V1 message '%s': %s", path_and_mode.c_str(),
strerror(errno));
return false;