diff options
author | Nicholas Clark <nick@ccl4.org> | 2004-01-12 17:27:25 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2004-01-12 17:27:25 +0000 |
commit | fc0199cd1c85fd36bc9608790098dc15545b22a6 (patch) | |
tree | 3e6cf5f13c8fc54c6f4187443095e21f667301aa /doop.c | |
parent | 7c04078ea21d9035bc412dbd7b8edf35773a2c43 (diff) | |
download | perl-fc0199cd1c85fd36bc9608790098dc15545b22a6.tar.gz |
use sv_setpvn rather than sv_setpv and save a strlen()
p4raw-id: //depot/perl@22121
Diffstat (limited to 'doop.c')
-rw-r--r-- | doop.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -669,7 +669,7 @@ Perl_do_join(pTHX_ register SV *sv, SV *del, register SV **mark, register SV **s ++mark; } - sv_setpv(sv, ""); + sv_setpvn(sv, "", 0); /* sv_setpv retains old UTF8ness [perl #24846] */ if (SvUTF8(sv)) SvUTF8_off(sv); |