diff options
author | wlestes <wlestes> | 2004-07-20 20:32:02 +0000 |
---|---|---|
committer | wlestes <wlestes> | 2004-07-20 20:32:02 +0000 |
commit | 403b169852da02b16e0576f610eee5e4422f2371 (patch) | |
tree | 226cd1ea91fb1813c5f81dff42c1335ccb79deee | |
parent | 1b9d5ce2a717be967249d404629a85a84dd32a56 (diff) | |
download | flex-403b169852da02b16e0576f610eee5e4422f2371.tar.gz |
correct improper stdin assignmentflex-2-5-32
-rw-r--r-- | filter.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |