use sv_setpvn rather than sv_setpv and save a strlen()
Nicholas Clark [Mon, 12 Jan 2004 17:27:25 +0000 (17:27 +0000)]
p4raw-id: //depot/perl@22121

doop.c

diff --git a/doop.c b/doop.c
index ffa1d1b..ea64ff8 100644 (file)
--- 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);