summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index b29d2ec8a2..c7de314bad 100644
--- 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);
}