diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2006-04-14 14:56:44 +0300 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-04-14 11:50:56 +0000 |
commit | 1a159fba18a77552673669d932364b0c4ea1852e (patch) | |
tree | edba0da4c5822fecda3bf1ac3e2483854bf989b6 /perlio.c | |
parent | 30b2893d4b20c43880f1a64192bda137a40ee39f (diff) | |
download | perl-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; } |