fix for windres core dumps
DJ Delorie
dj@delorie.com
Thu May 25 14:47:00 GMT 2000
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)
{
More information about the Binutils
mailing list