mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* MAINTAINERS: Add myself to the write-after-approval list.
* ser-tcp.c (tcp_open): Use `localhost' as default host if no
hostname is given.
This commit is contained in:
@@ -63,6 +63,9 @@ tcp_open (struct serial *scb, const char *name)
|
||||
hostname[tmp] = '\000'; /* Tie off host name */
|
||||
port = atoi (port_str + 1);
|
||||
|
||||
if (!hostname[0])
|
||||
strcpy (hostname, "localhost");
|
||||
|
||||
hostent = gethostbyname (hostname);
|
||||
|
||||
if (!hostent)
|
||||
|
||||
Reference in New Issue
Block a user