diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-10-21 01:28:42 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-10-21 01:28:42 +0000 |
commit | 905d5022ce568f63f7362a8e21c75774679b434d (patch) | |
tree | af3e25314491dd15fc2669386944e13fa3e7cf86 /pp_hot.c | |
parent | da7f16d7c6948b48011e897c0b5589d553fbdace (diff) | |
download | perl-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.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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. */ } |