diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-02-20 20:45:32 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-02-20 20:45:32 +0000 |
commit | 2932830be70ea941df331122b92e240614d4292f (patch) | |
tree | d6429c1a68766869a2d7863f948f521a6b72aaf1 | |
parent | 2003-02-18 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-2932830be70ea941df331122b92e240614d4292f.tar.bz2 |
2003-02-20 Wolfram Wadepohl <W.Wadepohl@indumat.de>
PR 357/rtems_misc
* src/termios.c (rtems_termios_open): Fixed code the incorrectly
checked that the wrong pointer during allocation was NULL.
-rw-r--r-- | cpukit/libcsupport/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/libcsupport/src/termios.c | 2 |
2 files changed, 7 insertions, 1 deletions
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 <W.Wadepohl@indumat.de> + + 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 <corsepiu@faw.uni-ulm.de> * 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); |