diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-01-28 15:44:04 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-01-28 15:44:04 +0000 |
commit | 5c1737d116a34c9fc2f84dad1ca8ff52ccdaaa64 (patch) | |
tree | 35038b20dc63be53277b64fae3fe2aeafa04276a /util.c | |
parent | 5d581361370ea6b2ccaa8b33836e4524ded42d12 (diff) | |
download | perl-5c1737d116a34c9fc2f84dad1ca8ff52ccdaaa64.tar.gz |
Add gv_fetchpvs, which uses STR_WITH_LEN to call gv_fetchpvn_flags.
Many strlen()s saved.
p4raw-id: //depot/perl@26983
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2273,7 +2273,7 @@ Perl_my_popen(pTHX_ const char *cmd, const char *mode) PerlProc__exit(1); } #endif /* defined OS2 */ - if ((tmpgv = gv_fetchpv("$",TRUE, SVt_PV))) { + if ((tmpgv = gv_fetchpvs("$",TRUE, SVt_PV))) { SvREADONLY_off(GvSV(tmpgv)); sv_setiv(GvSV(tmpgv), PerlProc_getpid()); SvREADONLY_on(GvSV(tmpgv)); |