summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2006-04-14 14:56:44 +0300
committerNicholas Clark <nick@ccl4.org>2006-04-14 11:50:56 +0000
commit1a159fba18a77552673669d932364b0c4ea1852e (patch)
treeedba0da4c5822fecda3bf1ac3e2483854bf989b6 /perlio.c
parent30b2893d4b20c43880f1a64192bda137a40ee39f (diff)
downloadperl-1a159fba18a77552673669d932364b0c4ea1852e.tar.gz
perlio.c: (Coverity) eliminate temp ptr that confuses Coverity into thinking there is a resource leak
Message-Id: <20060414085644.94A076D08C@ugli.hut.fi> Date: Fri, 14 Apr 2006 11:56:44 +0300 (EEST) p4raw-id: //depot/perl@27798
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/perlio.c b/perlio.c
index 07c47ce290..8a93acbd6a 100644
--- a/perlio.c
+++ b/perlio.c
@@ -2912,9 +2912,8 @@ PerlIOStdio_open(pTHX_ PerlIO_funcs *self, PerlIO_list_t *layers,
f = PerlIO_allocate(aTHX);
}
if ((f = PerlIO_push(aTHX_ f, self, mode, PerlIOArg))) {
- PerlIOStdio * const s = PerlIOSelf(f, PerlIOStdio);
- s->stdio = stdio;
- PerlIOUnix_refcnt_inc(fileno(s->stdio));
+ PerlIOSelf(f, PerlIOStdio)->stdio = stdio;
+ PerlIOUnix_refcnt_inc(fileno(stdio));
}
return f;
}