summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorMattia Barbon <mattia.barbon@booking.com>2022-11-13 23:33:50 +0100
committerYves Orton <demerphq@gmail.com>2022-11-14 10:58:37 +0100
commit7430084e6850b3c7a1ea5accd04f36620b936d75 (patch)
tree90a6fc934345ec9eaaa527beef52f4c3bc05cdb4 /sv.h
parent347a477c264548540487606c624445883c79c135 (diff)
downloadperl-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.h b/sv.h
index 7523d5a099..a1ff8f4a5f 100644
--- a/sv.h
+++ b/sv.h
@@ -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_, \