This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

fix for windres core dumps



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)
      {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]