summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwlestes <wlestes>2004-07-20 20:32:02 +0000
committerwlestes <wlestes>2004-07-20 20:32:02 +0000
commit403b169852da02b16e0576f610eee5e4422f2371 (patch)
tree226cd1ea91fb1813c5f81dff42c1335ccb79deee
parent1b9d5ce2a717be967249d404629a85a84dd32a56 (diff)
downloadflex-403b169852da02b16e0576f610eee5e4422f2371.tar.gz
correct improper stdin assignmentflex-2-5-32
-rw-r--r--filter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/filter.c b/filter.c
index b925c57..b2cf320 100644
--- a/filter.c
+++ b/filter.c
@@ -163,9 +163,9 @@ bool filter_apply_chain (struct filter * chain)
int r;
/* setup streams again */
- if ((stdin = fdopen (0, "r")) == NULL)
+ if ( ! fdopen (0, "r"))
flexfatal (_("fdopen(0) failed"));
- if ((stdout = fdopen (1, "w")) == NULL)
+ if (!fdopen (1, "w"))
flexfatal (_("fdopen(1) failed"));
if ((r = chain->filter_func (chain)) == -1)
@@ -186,7 +186,7 @@ bool filter_apply_chain (struct filter * chain)
if (dup2 (pipes[1], 1) == -1)
flexfatal (_("dup2(pipes[1],1)"));
close (pipes[1]);
- if ((stdout = fdopen (1, "w")) == NULL)
+ if ( !fdopen (1, "w"))
flexfatal (_("fdopen(1) failed"));
return true;