hostname is guarantee to never be null in this branch.
authorJean-Daniel Dupas <devlists@shadowlab.org>
Sat, 8 Feb 2014 20:29:40 +0000 (20:29 +0000)
committerJean-Daniel Dupas <devlists@shadowlab.org>
Sat, 8 Feb 2014 20:29:40 +0000 (20:29 +0000)
llvm-svn: 201027

lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp

index 27cf86c..1ec75a4 100644 (file)
@@ -560,7 +560,7 @@ GDBRemoteCommunication::StartListenThread (const char *hostname, uint16_t port)
     {
         char listen_url[512];
         if (hostname && hostname[0])
-            snprintf(listen_url, sizeof(listen_url), "listen://%s:%i", hostname ? hostname : "localhost", port);
+            snprintf(listen_url, sizeof(listen_url), "listen://%s:%i", hostname, port);
         else
             snprintf(listen_url, sizeof(listen_url), "listen://%i", port);
         m_listen_url = listen_url;