diff options
author | Nicholas Clark <nick@ccl4.org> | 2012-09-20 10:00:35 +0200 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2012-09-20 11:18:02 +0200 |
commit | f6dfc73674dee34ba46c58c97d0c3d0bf0bcc5dc (patch) | |
tree | 5292a3a83b6a284580b34d523baab9de4150ac37 /pp_sys.c | |
parent | cec4dc0e420ef6e3b19b0e6f661d2b4fa43b93fa (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |