Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 030f1eff authored by Greg Kaiser's avatar Greg Kaiser
Browse files

adb: Avoid extra string construction

Test: TreeHugger
Change-Id: Ie03062a17b98866f1bc419a7e509461cf4e6bb80
parent a1f41fc6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;