summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-11-08 21:37:52 +0000
committerNicholas Clark <nick@ccl4.org>2005-11-08 21:37:52 +0000
commit42d9b98d3f03094883cfc4bb765785a6d4396077 (patch)
treecb639739736f31b4c4068d5e3c9eb09b306d89fd /doio.c
parentf7997f866fdcafc687fbaa99dbeb48f109b2e8d8 (diff)
downloadperl-42d9b98d3f03094883cfc4bb765785a6d4396077.tar.gz
Eliminate some unnecessary strlen()s
p4raw-id: //depot/perl@26050
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doio.c b/doio.c
index 76a632a003..be67c6e466 100644
--- a/doio.c
+++ b/doio.c
@@ -176,7 +176,7 @@ Perl_do_openn(pTHX_ GV *gv, register const char *oname, I32 len, int as_raw,
IoTYPE(io) = PerlIO_intmode2str(rawmode, &mode[ix], &writing);
- namesv = sv_2mortal(newSVpvn(oname,strlen(oname)));
+ namesv = sv_2mortal(newSVpv(oname,0));
num_svs = 1;
svp = &namesv;
type = Nullch;