summaryrefslogtreecommitdiff
path: root/fastboot/socket_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fastboot/socket_test.cpp')
-rw-r--r--fastboot/socket_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fastboot/socket_test.cpp b/fastboot/socket_test.cpp
index affbdfd88..373abc35e 100644
--- a/fastboot/socket_test.cpp
+++ b/fastboot/socket_test.cpp
@@ -34,7 +34,7 @@ static constexpr int kTestTimeoutMs = 3000;
// Creates connected sockets |server| and |client|. Returns true on success.
bool MakeConnectedSockets(Socket::Protocol protocol, std::unique_ptr<Socket>* server,
std::unique_ptr<Socket>* client,
- const std::string hostname = "localhost") {
+ const std::string& hostname = "localhost") {
*server = Socket::NewServer(protocol, 0);
if (*server == nullptr) {
ADD_FAILURE() << "Failed to create server.";