Merge "adb: Avoid extra string construction" into rvc-dev am: 386e91d21c am: ca79430600

Change-Id: I6f511a36450298fb19a8a3e35eb72361cac82fb0
This commit is contained in:
TreeHugger Robot 2020-04-23 20:41:56 +00:00 committed by Automerger Merge Worker
commit 997997a974
1 changed files with 1 additions and 1 deletions

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;