[Lldb-commits] [lldb] r201027 - hostname is guarantee to never be null in this branch.
Jean-Daniel Dupas
devlists at shadowlab.org
Sat Feb 8 12:29:40 PST 2014
Author: jddupas
Date: Sat Feb 8 14:29:40 2014
New Revision: 201027
URL: http://llvm.org/viewvc/llvm-project?rev=201027&view=rev
Log:
hostname is guarantee to never be null in this branch.
Modified:
lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
Modified: lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp?rev=201027&r1=201026&r2=201027&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp Sat Feb 8 14:29:40 2014
@@ -560,7 +560,7 @@ GDBRemoteCommunication::StartListenThrea
{
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;
More information about the lldb-commits
mailing list