summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorDaniel Dragan <bulk88@hotmail.com>2014-08-31 01:40:27 -0400
committerFather Chrysostomos <sprout@cpan.org>2014-10-24 20:36:34 -0700
commit4e0ef34209f54db7b7567b4768de7318aaf800cd (patch)
tree95534e47cdc4e21342585df6e9464fd0d93f0636 /doio.c
parentce409cc88cd7e9921c410d37ca33d12e05a50aa1 (diff)
downloadperl-4e0ef34209f54db7b7567b4768de7318aaf800cd.tar.gz
cleanup perlio.c and doio.c
IoIFP will be assigned to again in say_false block. This redundant code is from commit 6e21c824d9 perl 4.0 patch 6. in PerlIO_allocate replace a duplicate block with a goto in PerlIO_resolve_layers replace a func call with a macro, this couldn't have been using magic due to the previous SvROK
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/doio.c b/doio.c
index 1f5f932490..a09800fcde 100644
--- a/doio.c
+++ b/doio.c
@@ -782,7 +782,6 @@ S_openn_cleanup(pTHX_ GV *gv, IO *io, PerlIO *fp, char *mode, const char *oname,
*s = 'w';
if (!(IoOFP(io) = PerlIO_openn(aTHX_ type,s,fd,0,0,NULL,0,NULL))) {
PerlIO_close(fp);
- IoIFP(io) = NULL;
goto say_false;
}
}