From 2932830be70ea941df331122b92e240614d4292f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 20 Feb 2003 20:45:32 +0000 Subject: 2003-02-20 Wolfram Wadepohl PR 357/rtems_misc * src/termios.c (rtems_termios_open): Fixed code the incorrectly checked that the wrong pointer during allocation was NULL. --- cpukit/libcsupport/ChangeLog | 6 ++++++ cpukit/libcsupport/src/termios.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cpukit/libcsupport/ChangeLog b/cpukit/libcsupport/ChangeLog index c8e2348fa6..557656a0c2 100644 --- a/cpukit/libcsupport/ChangeLog +++ b/cpukit/libcsupport/ChangeLog @@ -1,3 +1,9 @@ +2003-02-20 Wolfram Wadepohl + + PR 357/rtems_misc + * src/termios.c (rtems_termios_open): Fixed code the incorrectly + checked that the wrong pointer during allocation was NULL. + 2003-02-11 Ralf Corsepius * configure.ac: AM_INIT_AUTOMAKE([1.7.2]). diff --git a/cpukit/libcsupport/src/termios.c b/cpukit/libcsupport/src/termios.c index c8af569600..d83b635d37 100644 --- a/cpukit/libcsupport/src/termios.c +++ b/cpukit/libcsupport/src/termios.c @@ -183,7 +183,7 @@ rtems_termios_open ( */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); - if (tty->rawInBuf.theBuf == NULL) { + if (tty->rawOutBuf.theBuf == NULL) { free((void *)(tty->rawInBuf.theBuf)); free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); -- cgit v1.2.3