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 /cpukit/libcsupport/src/termios.c | |
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.
Diffstat (limited to 'cpukit/libcsupport/src/termios.c')
-rw-r--r-- | cpukit/libcsupport/src/termios.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |