diff options
author | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2016-09-21 15:38:42 +0100 |
---|---|---|
committer | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2016-09-21 15:42:44 +0100 |
commit | cf97b304d6039d9a3ad08c2e75ae3dbf3cf32dc8 (patch) | |
tree | 632ffeef6d10d5675c3a3012751964b5bec486b0 /sv.c | |
parent | 2c4188f3fe3f46d4ebe3f23a094a7cf96ebe87f1 (diff) | |
download | perl-cf97b304d6039d9a3ad08c2e75ae3dbf3cf32dc8.tar.gz |
Change sv_setpvn(…, "…", …) to sv_setpvs(…, "…")
The dual-life dists affected use Devel::PPPort, so can safely use
sv_setpvs() even though it wasn't added until Perl v5.10.0.
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10075,7 +10075,7 @@ Perl_sv_ref(pTHX_ SV *dst, const SV *const sv, const int ob) if (ob && SvOBJECT(sv)) { HvNAME_get(SvSTASH(sv)) ? sv_sethek(dst, HvNAME_HEK(SvSTASH(sv))) - : sv_setpvn(dst, "__ANON__", 8); + : sv_setpvs(dst, "__ANON__"); } else { const char * reftype = sv_reftype(sv, 0); |