diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-04-21 18:54:54 -0400 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2014-04-30 09:58:53 +1000 |
commit | 2a600bb8f7c0d6b36cb37c899b6c9e82537ec394 (patch) | |
tree | 6074af8cff46bae70794f676c7e73f7296e16e31 /perlio.c | |
parent | 53673d98756218ddd125311548c0f73c714722f7 (diff) | |
download | perl-2a600bb8f7c0d6b36cb37c899b6c9e82537ec394.tar.gz |
Fix for Coverity perl5 CID 29060: Pointer to local outside scope (RETURN_LOCAL) use_invalid: Using mode, which points to an out-of-scope variable tmode.
Duplicate the PerlIOBase_pushed call so that the tmode is in scope.
Diffstat (limited to 'perlio.c')
-rw-r--r-- | perlio.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2905,6 +2905,7 @@ PerlIOStdio_pushed(pTHX_ PerlIO *f, const char *mode, SV *arg, PerlIO_funcs *tab PerlIOSelf(f, PerlIOStdio)->stdio = stdio; /* We never call down so do any pending stuff now */ PerlIO_flush(PerlIONext(f)); + return PerlIOBase_pushed(aTHX_ f, mode, arg, tab); } else { return -1; |