Change 29364 forgot to turn the POK flag on.
Nicholas Clark [Thu, 23 Nov 2006 19:29:57 +0000 (19:29 +0000)]
p4raw-id: //depot/perl@29365

sv.c

diff --git a/sv.c b/sv.c
index b29d2ec..c7de314 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -3489,6 +3489,7 @@ Perl_sv_setsv_flags(pTHX_ SV *dstr, register SV *sstr, I32 flags)
             SvGROW(dstr, len + 1);
             Copy(ptr, SvPVX(dstr), len + 1, char);
             SvCUR_set(dstr, len);
+           SvPOK_only(dstr);
        } else {
            SvOK_off(dstr);
        }