This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[patch] binutils/resrc.c (new)
- To: DJ Delorie <dj at delorie dot com>
- Subject: [patch] binutils/resrc.c (new)
- From: Jamie Guinan <guinan at bluebutton dot com>
- Date: Wed, 30 Aug 2000 13:50:44 -0400 (EDT)
- cc: binutils at sourceware dot cygnus dot com
- Reply-To: guinan at bluebutton dot com
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 ----