This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
fix for windres core dumps
- To: binutils at sourceware dot cygnus dot com
- Subject: fix for windres core dumps
- From: DJ Delorie <dj at delorie dot com>
- Date: Thu, 25 May 2000 17:46:44 -0400
OK to apply?
2000-05-25 DJ Delorie <dj@cygnus.com>
* resrc.c (close_input_stream): zero out cpp_pipe after closing it.
Index: resrc.c
===================================================================
RCS file: /cvs/src/src/binutils/resrc.c,v
retrieving revision 1.7
diff -p -3 -r1.7 resrc.c
*** resrc.c 2000/02/19 03:59:10 1.7
--- resrc.c 2000/05/25 21:45:15
*************** static void
*** 499,505 ****
close_input_stream ()
{
if (cpp_pipe != NULL)
! pclose (cpp_pipe);
if (istream_type == ISTREAM_FILE)
{
--- 499,508 ----
close_input_stream ()
{
if (cpp_pipe != NULL)
! {
! pclose (cpp_pipe);
! cpp_pipe = NULL;
! }
if (istream_type == ISTREAM_FILE)
{