diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-02-20 20:45:40 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-02-20 20:45:40 +0000 |
commit | bce9f3b173d6a944340a9898311564724766dbb0 (patch) | |
tree | 4dea07c44e70310e2c1872d5bd88b7da8aad1691 /cpukit/libcsupport | |
parent | 2003-02-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-bce9f3b173d6a944340a9898311564724766dbb0.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.
Diffstat (limited to 'cpukit/libcsupport')
-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 dd735a3229..56d65631db 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-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de> * src/privateenv.c: Fix prototype for free_user_env. 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); |