aboutsummaryrefslogtreecommitdiff
path: root/binutils/resrc.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2000-05-26 18:46:47 +0000
committerDJ Delorie <dj@redhat.com>2000-05-26 18:46:47 +0000
commit3b35ec75cb0811cb76b4c4aa347f2878c20222f3 (patch)
treea8134c7f29e1ac444be3b3a0b94028e790de6e7d /binutils/resrc.c
parent2114f57b9397aebda1c89a5c627dba0d34159280 (diff)
downloadgdb-3b35ec75cb0811cb76b4c4aa347f2878c20222f3.zip
gdb-3b35ec75cb0811cb76b4c4aa347f2878c20222f3.tar.gz
gdb-3b35ec75cb0811cb76b4c4aa347f2878c20222f3.tar.bz2
* 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 8c3c9a7..814809e 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)
{