From 3b35ec75cb0811cb76b4c4aa347f2878c20222f3 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Fri, 26 May 2000 18:46:47 +0000 Subject: [PATCH] * resrc.c (close_input_stream): zero out cpp_pipe after closing it. --- binutils/ChangeLog | 4 ++++ binutils/resrc.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index ec322db1f53..9bc3c191bad 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2000-05-25 DJ Delorie + + * resrc.c (close_input_stream): zero out cpp_pipe after closing it. + 2000-05-26 Alan Modra * Makefile.am: Update dependencies with "make dep-am" diff --git a/binutils/resrc.c b/binutils/resrc.c index 8c3c9a74d22..814809e240a 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) { -- 2.30.2