mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-01 22:34:22 +08:00
2012-06-11 Pedro Alves <palves@redhat.com>
* serial.c (do_serial_close): Remove early return when SCB is null.
This commit is contained in:
parent
0726159622
commit
318aa544a8
@ -1,3 +1,8 @@
|
|||||||
|
2012-06-11 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
|
* serial.c (do_serial_close): Remove early return when SCB is
|
||||||
|
null.
|
||||||
|
|
||||||
2012-06-11 Tom Tromey <tromey@redhat.com>
|
2012-06-11 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
|
* dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
|
||||||
|
@ -330,12 +330,6 @@ do_serial_close (struct serial *scb, int really_close)
|
|||||||
serial_logfp = NULL;
|
serial_logfp = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 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->refcnt--;
|
scb->refcnt--;
|
||||||
if (scb->refcnt > 0)
|
if (scb->refcnt > 0)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user