summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2012-09-20 10:00:35 +0200
committerNicholas Clark <nick@ccl4.org>2012-09-20 11:18:02 +0200
commitf6dfc73674dee34ba46c58c97d0c3d0bf0bcc5dc (patch)
tree5292a3a83b6a284580b34d523baab9de4150ac37 /pp_sys.c
parentcec4dc0e420ef6e3b19b0e6f661d2b4fa43b93fa (diff)
downloadperl-f6dfc73674dee34ba46c58c97d0c3d0bf0bcc5dc.tar.gz
Use gv_fetchpvs() instead of gv_fetchpv(), and GV_ADD, not TRUE.
This avoids a needless strlen(), and corrects a classic usage error for the gv_fetch*() functions.
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 0221110420..536fb2ecef 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -1453,7 +1453,7 @@ PP(pp_leavewrite)
}
}
if (IoLINES_LEFT(io) >= 0 && IoPAGE(io) > 0)
- do_print(GvSV(gv_fetchpv("\f", TRUE, SVt_PV)), ofp);
+ do_print(GvSV(gv_fetchpvs("\f", GV_ADD, SVt_PV)), ofp);
IoLINES_LEFT(io) = IoPAGE_LEN(io);
IoPAGE(io)++;
PL_formtarget = PL_toptarget;