summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-04-24 17:39:00 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-04-24 17:39:00 +0000
commit92d29cee5ff815b05b81b877528e4c77e73881c9 (patch)
tree1887469b52eec03299be2ab643c8a5310d73622e /doop.c
parent85e0ebd8793b17cfbac766abc03b5fff57b2b2cd (diff)
downloadperl-92d29cee5ff815b05b81b877528e4c77e73881c9.tar.gz
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@5937
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/doop.c b/doop.c
index 06b1b38d5c..4224b0ea13 100644
--- a/doop.c
+++ b/doop.c
@@ -660,12 +660,9 @@ Perl_do_join(pTHX_ register SV *sv, SV *del, register SV **mark, register SV **s
if (items-- > 0) {
char *s;
- if (*mark) {
- s = SvPV(*mark, tmplen);
- sv_setpvn(sv, s, tmplen);
- }
- else
- sv_setpv(sv, "");
+ sv_setpv(sv, "");
+ if (*mark)
+ sv_catsv(sv, *mark);
mark++;
}
else