summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-11-05 05:48:44 -0800
committerFather Chrysostomos <sprout@cpan.org>2013-11-05 06:15:15 -0800
commitdc3e91f6d6ea441e8f6ea23d87efab6e7169142a (patch)
treed13764df64a7370fcd3335d7275551639f0abb60 /gv.c
parent5882ddb381a033c6699801b9b1046860bf7bfa9c (diff)
downloadperl-dc3e91f6d6ea441e8f6ea23d87efab6e7169142a.tar.gz
gv.c: Removed redundant len==1 check
When I added this in ea238638, I put the same code in the branches for the main stash and other stashes. In the main stash branch, this occurs in a switch that is solely for one-character names, so checking the length again is superfluous.
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gv.c b/gv.c
index 62652fe0cb..f600942156 100644
--- a/gv.c
+++ b/gv.c
@@ -2023,7 +2023,7 @@ S_gv_magicalize(pTHX_ GV *gv, HV *stash, const char *name, STRLEN len,
break;
case 'a':
case 'b':
- if (len == 1 && sv_type == SVt_PV)
+ if (sv_type == SVt_PV)
GvMULTI_on(gv);
}
}