summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 02f425aa41..25a804a123 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1336,7 +1336,7 @@ PP(pp_match)
appears to be quite tricky.
Test for the unsafe vars are TODO for now. */
if (( !global && RX_NPARENS(rx))
- || SvTEMP(TARG) || PL_sawampersand ||
+ || SvTEMP(TARG) || SvAMAGIC(TARG) || PL_sawampersand ||
(RX_EXTFLAGS(rx) & (RXf_EVAL_SEEN|RXf_PMf_KEEPCOPY)))
r_flags |= REXEC_COPY_STR;
if (SvSCREAM(TARG))