projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Re: [PATCH] eof() coredumps when ARGV is aliased to another filehandle
[p5sagit/p5-mst-13.2.git]
/
doio.c
diff --git
a/doio.c
b/doio.c
index
68853c2
..
0520992
100644
(file)
--- a/
doio.c
+++ b/
doio.c
@@
-997,7
+997,7
@@
Perl_do_eof(pTHX_ GV *gv)
PerlIO_set_cnt(IoIFP(io),-1);
}
if (PL_op->op_flags & OPf_SPECIAL) { /* not necessarily a real EOF yet? */
- if (!nextargv(PL_argvgv)) /* get another fp handy */
+ if (gv != PL_argvgv || !nextargv(gv)) /* get another fp handy */
return TRUE;
}
else