forked from OSchip/llvm-project
hostname is guarantee to never be null in this branch.
llvm-svn: 201027
This commit is contained in:
parent
ef37711f85
commit
3c6774a172
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue