summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>2001-05-26 18:05:12 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-05-26 22:31:46 +0000
commit8d6d96c1bf85fd984f18f84ea834be52b168c812 (patch)
tree4ee72334404f4fe71563fa9032cd971abbc0f829 /doop.c
parentc9242e489bb96da0966a8aebd4b60579ca9623f3 (diff)
downloadperl-8d6d96c1bf85fd984f18f84ea834be52b168c812.tar.gz
Re: 5.6.*, bleadperl: bugs in pp_concat
Message-Id: <200105261605.RAA12295@crypt.compulink.co.uk> p4raw-id: //depot/perl@10223
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/doop.c b/doop.c
index 2b504a1b69..a5c1ce3a7c 100644
--- a/doop.c
+++ b/doop.c
@@ -667,14 +667,16 @@ Perl_do_join(pTHX_ register SV *sv, SV *del, register SV **mark, register SV **s
++mark;
}
+ sv_setpv(sv, "");
+ if (PL_tainting && SvMAGICAL(sv))
+ SvTAINTED_off(sv);
+
if (items-- > 0) {
- sv_setpv(sv, "");
if (*mark)
sv_catsv(sv, *mark);
mark++;
}
- else
- sv_setpv(sv,"");
+
if (delimlen) {
for (; items > 0; items--,mark++) {
sv_catsv(sv,del);