summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2015-02-04 16:10:20 +1100
committerTony Cook <tony@develop-help.com>2015-02-04 16:10:20 +1100
commit5fe499a8e26270679c0c6d48431f3a328a8ffeba (patch)
treeb51d44f06c32905f03038782f4f36089d33c43cd /mg.c
parent84ad9c6c2d2072cd602e0f4ee76fd4ac5107dc3d (diff)
downloadperl-5fe499a8e26270679c0c6d48431f3a328a8ffeba.tar.gz
[perl #123218] "preserve" $/ if set to a bad value
and base/rs.t tests $/ not $!
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mg.c b/mg.c
index 58427a4863..237b404c86 100644
--- a/mg.c
+++ b/mg.c
@@ -1105,6 +1105,7 @@ Perl_magic_get(pTHX_ SV *sv, MAGIC *mg)
case ':':
break;
case '/':
+ sv_setsv(sv, PL_rs);
break;
case '[':
sv_setiv(sv, 0);