2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>

* serial.c (serial_open): Fix the OPEN parameter macro expansion.
This commit is contained in:
Jan Kratochvil 2007-08-08 22:12:35 +00:00
parent 6217bf3e40
commit 652aaa2406
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
* serial.c (serial_open): Fix the OPEN parameter macro expansion.
2007-08-08 Michael Snyder <msnyder@access-company.com>
* target.c (target_read_string): Guard against null.

View File

@ -213,7 +213,8 @@ serial_open (const char *name)
scb->bufp = scb->buf;
scb->error_fd = -1;
if (scb->ops->open (scb, open_name))
/* `...->open (...)' would get expanded by an the open(2) syscall macro. */
if ((*scb->ops->open) (scb, open_name))
{
xfree (scb);
return NULL;