diff options
| author | Jean-Daniel Dupas <devlists@shadowlab.org> | 2014-02-08 20:29:40 +0000 |
|---|---|---|
| committer | Jean-Daniel Dupas <devlists@shadowlab.org> | 2014-02-08 20:29:40 +0000 |
| commit | 3c6774a172a116adf5272081c926af54fb81d384 (patch) | |
| tree | 59a9f345d5db80c037e3e3583571d21fc83c246d /lldb/source/Plugins/Process/gdb-remote | |
| parent | ef37711f852e5036dbe8fb0af863e164921eb8e6 (diff) | |
| download | bcm5719-llvm-3c6774a172a116adf5272081c926af54fb81d384.tar.gz bcm5719-llvm-3c6774a172a116adf5272081c926af54fb81d384.zip | |
hostname is guarantee to never be null in this branch.
llvm-svn: 201027
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote')
| -rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp index 27cf86c4c25..1ec75a4bc7a 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp @@ -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; |

