]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* 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 8c6540d4804e6c1d33c4aff4748ab8aeb2f0cd5d..809c5c3d29c7f4174e8e5b9108d86e20c709a05d 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 264a2d6e49323452ddad2543664ae08fbd6f3fa1..09c664a6bd7898da35618a9cbd16eed85b261736 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 fe5cb4420b9d81c6818410395f696ededdb27b4a..9a868e8df7293b6e7a4e6fc51e786faf4720608d 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)