* MAINTAINERS: Add myself to the write-after-approval list.
authorCorinna Vinschen <corinna@vinschen.de>
Thu, 2 Aug 2001 09:08:03 +0000 (09:08 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 2 Aug 2001 09:08:03 +0000 (09:08 +0000)
        * ser-tcp.c (tcp_open): Use `localhost' as default host if no
        hostname is given.

gdb/ChangeLog
gdb/MAINTAINERS
gdb/ser-tcp.c

index 8c6540d..809c5c3 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-02  Corinna Vinschen  <vinschen@redhat.com>
+
+       * MAINTAINERS: Add myself to the write-after-approval list.
+       * ser-tcp.c (tcp_open): Use `localhost' as default host if no
+       hostname is given.
+
 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
 
        * doublest.h (store_floating, floatformat_to_doublest): Make IN
index 264a2d6..09c664a 100644 (file)
@@ -353,6 +353,7 @@ David Smith                                 dsmith@redhat.com
 Stephen P. Smith                               ischis2@home.com
 Gary Thomas                                    gthomas@redhat.com
 Tom Tromey                                     tromey@redhat.com
+Corinna Vinschen                               vinschen@redhat.com
 
 
 
index fe5cb44..9a868e8 100644 (file)
@@ -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)