diff options
author | Nicolas R <atoomic@cpan.org> | 2017-09-25 13:37:06 -0500 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2017-10-19 14:21:10 +1100 |
commit | 59c3c222a42121edb1b3cdd9c71d3c878e3ddb18 (patch) | |
tree | 0297f2d6baffec7d003d2b419aa9f9d75d5ca36e /gv.c | |
parent | dc280c2b67516b7246d304d3e555b7b6dbc9f907 (diff) | |
download | perl-59c3c222a42121edb1b3cdd9c71d3c878e3ddb18.tar.gz |
Use SvLEN_set/SvCUR_set in a few extra locations
SvLEN was set without using the generic macro SvLEN_set.
Use it in three extra locations, and also use SvCUR_set
instead of SvCUR.
Diffstat (limited to 'gv.c')
-rw-r--r-- | gv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1271,7 +1271,7 @@ Perl_gv_autoload_pvn(pTHX_ HV *stash, const char *name, STRLEN len, U32 flags) sv_setsv_nomg((SV *)cv, tmpsv); SvTEMP_off(tmpsv); SvREFCNT_dec_NN(tmpsv); - SvLEN(cv) = SvCUR(cv) + 1; + SvLEN_set(cv, SvCUR(cv) + 1); SvCUR(cv) = ulen; } else { |