projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* breakpoint.c, breakpoint.h (breakpoint_init_inferior): New function
[deliverable/binutils-gdb.git]
/
gdb
/
serial.c
diff --git
a/gdb/serial.c
b/gdb/serial.c
index 0e5a064b2537f77b1a62153a607e1fe4c701e48a..6913fd6e239893565bc94ebb10cdccd161021a81 100644
(file)
--- a/
gdb/serial.c
+++ b/
gdb/serial.c
@@
-116,8
+116,13
@@
serial_close(scb)
{
last_serial_opened = NULL;
- scb->ops->close(scb);
+/* This is bogus. It's not our fault if you pass us a bad scb...! Rob, you
+ should fix your code instead. */
+
+ if (!scb)
+ return;
+ scb->ops->close(scb);
free(scb);
}
This page took
0.023155 seconds
and
4
git commands to generate.