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:
8770f09
)
Zero new XOPs xop_desc will never be invalid
author
Florian Ragwitz
<rafl@debian.org>
Mon, 15 Nov 2010 09:06:01 +0000
(10:06 +0100)
committer
Florian Ragwitz
<rafl@debian.org>
Mon, 15 Nov 2010 09:06:01 +0000
(10:06 +0100)
Even if the xop description couldn't be fetched from PL_custom_op_descs.
op.c
patch
|
blob
|
blame
|
history
diff --git
a/op.c
b/op.c
index
b132665
..
65f940c
100644
(file)
--- a/
op.c
+++ b/
op.c
@@
-10082,7
+10082,7
@@
Perl_custom_op_xop(pTHX_ const OP *o)
STRLEN l;
/* XXX does all this need to be shared mem? */
- Newx(xop, 1, XOP);
+ Newx
z
(xop, 1, XOP);
pv = SvPV(HeVAL(he), l);
XopENTRY_set(xop, xop_name, savepvn(pv, l));
if (PL_custom_op_descs &&