summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-04-21 18:54:54 -0400
committerTony Cook <tony@develop-help.com>2014-04-30 09:58:53 +1000
commit2a600bb8f7c0d6b36cb37c899b6c9e82537ec394 (patch)
tree6074af8cff46bae70794f676c7e73f7296e16e31 /perlio.c
parent53673d98756218ddd125311548c0f73c714722f7 (diff)
downloadperl-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/perlio.c b/perlio.c
index 0ae0a43d32..d4c43d091e 100644
--- a/perlio.c
+++ b/perlio.c
@@ -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;