diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-11-19 23:37:45 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-11-20 14:14:00 -0800 |
commit | 8e1fa37c0a5504fad7b88bfd3aa0e59d003ff422 (patch) | |
tree | 649db93c1bb4ab66a8ea70922c46cbd797825567 /op.c | |
parent | 032a04476225083994159c2b89c018e2594bf76e (diff) | |
download | perl-8e1fa37c0a5504fad7b88bfd3aa0e59d003ff422.tar.gz |
Have newCONSTSUB pass the length to newXS
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -6924,8 +6924,6 @@ Perl_newCONSTSUB_flags(pTHX_ HV *stash, const char *name, STRLEN len, const char *const file = temp_sv ? SvPV_nolen_const(temp_sv) : NULL; #endif - PERL_UNUSED_ARG(len); - ENTER; if (IN_PERL_RUNTIME) { @@ -6952,7 +6950,7 @@ Perl_newCONSTSUB_flags(pTHX_ HV *stash, const char *name, STRLEN len, and so doesn't get free()d. (It's expected to be from the C pre- processor __FILE__ directive). But we need a dynamically allocated one, and we need it to get freed. */ - cv = newXS_flags(name, const_sv_xsub, file ? file : "", "", + cv = newXS_len_flags(name, len, const_sv_xsub, file ? file : "", "", XS_DYNAMIC_FILENAME | flags); CvXSUBANY(cv).any_ptr = sv; CvCONST_on(cv); |