Merge "adb: Avoid extra string construction" am: 6b42d6d859

Change-Id: I50743f9e3713d11c56d16bde9f6091f465f4db97
This commit is contained in:
Treehugger Robot 2020-03-27 15:16:28 +00:00 committed by Automerger Merge Worker
commit b8a9b8f367

View file

@ -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;