summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scope.c b/scope.c
index 59085ce636..7a891c4e42 100644
--- a/scope.c
+++ b/scope.c
@@ -91,7 +91,7 @@ GV *gv;
SSPUSHINT(SAVEt_SV);
sv = GvSV(gv) = NEWSV(0,0);
- if (SvTYPE(osv) >= SVt_PVMG && SvMAGIC(sv)) {
+ if (SvTYPE(osv) >= SVt_PVMG && SvMAGIC(osv)) {
sv_upgrade(sv, SvTYPE(osv));
SvMAGIC(sv) = SvMAGIC(osv);
localizing = TRUE;