hostname is guarantee to never be null in this branch.

llvm-svn: 201027
This commit is contained in:
Jean-Daniel Dupas 2014-02-08 20:29:40 +00:00
parent ef37711f85
commit 3c6774a172
1 changed files with 1 additions and 1 deletions

View 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;