summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-01-28 17:46:56 +0000
committerNicholas Clark <nick@ccl4.org>2006-01-28 17:46:56 +0000
commit90e5519e3100e145a0051dac121e038bd45695c6 (patch)
tree806ff1c8a53a71f9acaad95f4fdf74d71b0b1e50 /doio.c
parent8f20275887caedc32e165a1aa9890f861054dd9a (diff)
downloadperl-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/doio.c b/doio.c
index 8c1422877a..019312b600 100644
--- a/doio.c
+++ b/doio.c
@@ -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) {