summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2004-01-12 17:27:25 +0000
committerNicholas Clark <nick@ccl4.org>2004-01-12 17:27:25 +0000
commitfc0199cd1c85fd36bc9608790098dc15545b22a6 (patch)
tree3e6cf5f13c8fc54c6f4187443095e21f667301aa /doop.c
parent7c04078ea21d9035bc412dbd7b8edf35773a2c43 (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doop.c b/doop.c
index ffa1d1bbac..ea64ff8fb4 100644
--- a/doop.c
+++ b/doop.c
@@ -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);