summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-10-21 01:28:42 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-10-21 01:28:42 +0000
commit905d5022ce568f63f7362a8e21c75774679b434d (patch)
treeaf3e25314491dd15fc2669386944e13fa3e7cf86 /pp_hot.c
parentda7f16d7c6948b48011e897c0b5589d553fbdace (diff)
downloadperl-905d5022ce568f63f7362a8e21c75774679b434d.tar.gz
The #7383 was right only in the context of the original bug report,
not in more general case. p4raw-id: //depot/perl@7385
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pp_hot.c b/pp_hot.c
index d6a7f04da2..3f85116a31 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -173,10 +173,8 @@ PP(pp_concat)
olds = s = (U8*)savepvn((char*)s, len);
}
if (!SvOK(left) && SvTYPE(left) <= SVt_PVMG) {
- if (SvREADONLY(left)) {
- left = sv_2mortal(newSVpvn("", 0));
- left_utf = FALSE;
- }
+ if (SvREADONLY(left))
+ left = sv_2mortal(newSVsv(left));
else
sv_setpv(left, ""); /* Suppress warning. */
}