summaryrefslogtreecommitdiff
path: root/binutils/resrc.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2000-05-26 18:46:47 +0000
committerDJ Delorie <dj@delorie.com>2000-05-26 18:46:47 +0000
commitd157c5fdcd94aba66fa51713cc589f479a5b6c36 (patch)
tree0372790dccd07de0fc53e523bb3added01c4f2c0 /binutils/resrc.c
parent311fcfcbf2dbaafaa0332ce28ab631a4e35770eb (diff)
downloadbinutils-redhat-d157c5fdcd94aba66fa51713cc589f479a5b6c36.tar.gz
* resrc.c (close_input_stream): zero out cpp_pipe after closing it.
Diffstat (limited to 'binutils/resrc.c')
-rw-r--r--binutils/resrc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/binutils/resrc.c b/binutils/resrc.c
index 8c3c9a74d2..814809e240 100644
--- a/binutils/resrc.c
+++ b/binutils/resrc.c
@@ -499,7 +499,10 @@ static void
close_input_stream ()
{
if (cpp_pipe != NULL)
- pclose (cpp_pipe);
+ {
+ pclose (cpp_pipe);
+ cpp_pipe = NULL;
+ }
if (istream_type == ISTREAM_FILE)
{