diff options
author | Mattia Barbon <mattia.barbon@booking.com> | 2022-11-13 23:33:50 +0100 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2022-11-14 10:58:37 +0100 |
commit | 7430084e6850b3c7a1ea5accd04f36620b936d75 (patch) | |
tree | 90a6fc934345ec9eaaa527beef52f4c3bc05cdb4 /sv.h | |
parent | 347a477c264548540487606c624445883c79c135 (diff) | |
download | perl-7430084e6850b3c7a1ea5accd04f36620b936d75.tar.gz |
SvPVutf8_nomg - assign string length to the len parameter
This is consistent with other SvPV* variants that take a len parameter.
Diffstat (limited to 'sv.h')
-rw-r--r-- | sv.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1955,7 +1955,7 @@ END_EXTERN_C Perl_SvPV_helper(aTHX_ sv, &len, SV_GMAGIC, SvPVutf8_type_, \ Perl_sv_2pvutf8_flags, FALSE, 0) #define SvPVutf8_nomg(sv, len) \ - Perl_SvPV_helper(aTHX_ sv, NULL, 0, SvPVutf8_type_, \ + Perl_SvPV_helper(aTHX_ sv, &len, 0, SvPVutf8_type_, \ Perl_sv_2pvutf8_flags, FALSE, 0) #define SvPVutf8_nolen(sv) \ Perl_SvPV_helper(aTHX_ sv, NULL, SV_GMAGIC, SvPVutf8_type_, \ |