diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-01-28 17:46:56 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-01-28 17:46:56 +0000 |
commit | 90e5519e3100e145a0051dac121e038bd45695c6 (patch) | |
tree | 806ff1c8a53a71f9acaad95f4fdf74d71b0b1e50 /doio.c | |
parent | 8f20275887caedc32e165a1aa9890f861054dd9a (diff) | |
download | perl-90e5519e3100e145a0051dac121e038bd45695c6.tar.gz |
Call gv_fetchpvn_flags where we already know the length.
p4raw-id: //depot/perl@26989
Diffstat (limited to 'doio.c')
-rw-r--r-- | doio.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -336,7 +336,8 @@ Perl_do_openn(pTHX_ GV *gv, register const char *oname, I32 len, int as_raw, } else { GV *thatgv; - thatgv = gv_fetchpv(type,0,SVt_PVIO); + thatgv = gv_fetchpvn_flags(type, type-tend, + 0, SVt_PVIO); thatio = GvIO(thatgv); } if (!thatio) { |