This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c472fc
)
Make PerlIO::get_layers really test flgok before reading *flgsvp
author
Vincent Pit
<perl@profvince.com>
Sat, 7 Mar 2009 20:37:22 +0000
(21:37 +0100)
committer
Vincent Pit
<perl@profvince.com>
Sat, 7 Mar 2009 20:52:35 +0000
(21:52 +0100)
universal.c
patch
|
blob
|
blame
|
history
diff --git
a/universal.c
b/universal.c
index
d333d23
..
db6bfc6
100644
(file)
--- a/
universal.c
+++ b/
universal.c
@@
-1025,7
+1025,7
@@
XS(XS_PerlIO_get_layers)
(SvUTF8(*argsvp) ? SVf_UTF8 : 0)
| SVs_TEMP)
: &PL_sv_undef);
- XPUSHs(
nam
ok
+ XPUSHs(
flg
ok
? sv_2mortal(SvREFCNT_inc_simple_NN(*flgsvp))
: &PL_sv_undef);
nitem += 3;