This is the mail archive of the binutils@sources.redhat.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]

[patch] binutils/resrc.c (new)


On Wed, 30 Aug 2000, DJ Delorie wrote:

> > But I saw that cpp_pipe was [pf]close'd on either path of the
> > subsequent "if" statement, and set to NULL at the end, so it
> > still seems to me like the top "if" can go away.
> 
> You're right.  Weird.  OK, submit a patch to remove it and I'll apply
> it.

This one is against CVS instead of 2.10.

Thanks,
-Jamie
Index: resrc.c
===================================================================
RCS file: /cvs/src/src/binutils/resrc.c,v
retrieving revision 1.10
diff -c -r1.10 resrc.c
*** resrc.c	2000/08/02 00:20:30	1.10
--- resrc.c	2000/08/30 17:38:48
***************
*** 498,509 ****
  static void
  close_input_stream ()
  {
-   if (cpp_pipe != NULL)
-     {
-       pclose (cpp_pipe);
-       cpp_pipe = NULL;
-     }
-   
    if (istream_type == ISTREAM_FILE)
      {
        if (cpp_pipe != NULL)
--- 498,503 ----

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