summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-02-20 20:45:32 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-02-20 20:45:32 +0000
commit2932830be70ea941df331122b92e240614d4292f (patch)
treed6429c1a68766869a2d7863f948f521a6b72aaf1
parent2003-02-18 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-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/ChangeLog6
-rw-r--r--cpukit/libcsupport/src/termios.c2
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);