summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/shell.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-09-14 18:24:56 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-09-14 18:24:56 +0000
commit130291f55c64e7ea1b81b6fc9bdbae2846f10fa2 (patch)
tree47845d0b327551356c5756af30b060e9f0c730d4 /cpukit/libmisc/shell/shell.c
parent37b5d78153e68ccf08db8a6eb4e9848f83aec8e3 (diff)
downloadrtems-130291f55c64e7ea1b81b6fc9bdbae2846f10fa2.tar.bz2
2001-09-14 Joel Sherrill <joel@OARcorp.com>
* ChangeLog: Fixed some mistakes.
Diffstat (limited to '')
-rw-r--r--cpukit/libmisc/shell/shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libmisc/shell/shell.c b/cpukit/libmisc/shell/shell.c
index 76f534d214..c13af8d6e2 100644
--- a/cpukit/libmisc/shell/shell.c
+++ b/cpukit/libmisc/shell/shell.c
@@ -288,7 +288,7 @@ int shell_scanline(char * line,int size,FILE * in,FILE * out) {
if (out) fprintf(out,"%s",line);
};
tcdrain(fileno(in ));
- tcdrain(fileno(out));
+ if (out) tcdrain(fileno(out));
for (;;) {
line[col]=0;
c=fgetc(in);