summaryrefslogtreecommitdiff
path: root/adb/client/file_sync_client.cpp
diff options
context:
space:
mode:
authorGreg Kaiser <gkaiser@google.com>2020-03-27 06:10:11 -0700
committerGreg Kaiser <gkaiser@google.com>2020-04-21 20:34:44 -0700
commitcb885c24fc57a06af6236470f4643c338295f363 (patch)
tree71624f00926aa43dd9d1cdf15ad09e798f827bc6 /adb/client/file_sync_client.cpp
parentaf9240abc962e24dff3e81477afb94a5b0b4d977 (diff)
adb: Avoid extra string construction
Bug: 150827486 Test: TreeHugger Change-Id: Ie03062a17b98866f1bc419a7e509461cf4e6bb80 Merged-In: Ie03062a17b98866f1bc419a7e509461cf4e6bb80
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;