* serial.c (serial_close): If scb is NULL, don't try to close
authorRob Savoye <rob@cygnus>
Wed, 9 Jun 1993 01:18:26 +0000 (01:18 +0000)
committerRob Savoye <rob@cygnus>
Wed, 9 Jun 1993 01:18:26 +0000 (01:18 +0000)
       it.
       * configure.in: Add support for rom68k and bug boot monitors.

gdb/ChangeLog
gdb/serial.c

index 3f0cf78ebbac8d613f739a32c0037ff4411610c2..c6926a4cfb1d211a0bb04fd337b82fc19321b75e 100644 (file)
@@ -1,3 +1,9 @@
+Tue Jun  8 17:54:09 1993  Rob Savoye  (rob@rtl.cygnus.com)
+
+       * serial.c (serial_close): If scb is NULL, don't try to close
+       it. 
+       * configure.in: Add support for rom68k and bug boot monitors.
+
 Tue Jun  8 17:39:12 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
 
        * coffread.c (init_stringtab): Fix bug where sizeof(long) != 4.
index 0e5a064b2537f77b1a62153a607e1fe4c701e48a..005c946e9c12eef6dd78856b01b9ab6ce58488b0 100644 (file)
@@ -116,9 +116,11 @@ serial_close(scb)
 {
   last_serial_opened = NULL;
 
-  scb->ops->close(scb);
-
-  free(scb);
+  if (scb != NULL)
+    {
+      scb->ops->close(scb);
+      free(scb);
+    }
 }
 
 #if 0
This page took 0.027716 seconds and 4 git commands to generate.