summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-06-10 20:12:33 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-06-15 12:28:14 -0700
commit17e630981f8fb430b753fffb5027dbe121759a1c (patch)
treebd9a6fe692ccd2a70e185849ece168d547d71fa9 /gv.c
parent334dda80119a7439d15c0fad85c705b913ba6848 (diff)
downloadperl-17e630981f8fb430b753fffb5027dbe121759a1c.tar.gz
gv.c: Don’t repeat GvSVn
GvSVn checks whether there is a scalar present and creates one if there is not. So doing GvSVn twice in a row results in a redundant check. It has been this way since c69033f2.
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 8bf975eebb..6c1e73eb8c 100644
--- a/gv.c
+++ b/gv.c
@@ -1977,7 +1977,7 @@ Perl_gv_fetchpvn_flags(pTHX_ const char *nambeg, STRLEN full_len, I32 flags,
case '\014': /* $^L */
sv_setpvs(GvSVn(gv),"\f");
- PL_formfeed = GvSVn(gv);
+ PL_formfeed = GvSV(gv);
break;
case ';': /* $; */
sv_setpvs(GvSVn(gv),"\034");