summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2002-07-09 16:59:29 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2002-07-09 16:59:29 +0000
commit602c3c4b6f5b561b590efa06fdef6c029706eab5 (patch)
treead7c919e2f6f72bc2d602ea586be627a42220eaf /perlio.c
parentfc0405385301b68772b81b5092d6e41c308340c2 (diff)
downloadperl-602c3c4b6f5b561b590efa06fdef6c029706eab5.tar.gz
Fix open(FH,"Via(Foo)","NonExistant") and other cases when
:stdio as lower layer fails. p4raw-id: //depot/perlio@17446
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/perlio.c b/perlio.c
index 925920d7e2..3cce8422d0 100644
--- a/perlio.c
+++ b/perlio.c
@@ -2564,8 +2564,11 @@ PerlIOStdio_open(pTHX_ PerlIO_funcs *self, PerlIO_list_t *layers,
s->stdio = stdio;
PerlIOUnix_refcnt_inc(fileno(s->stdio));
}
+ return f;
+ }
+ else {
+ return NULL;
}
- return f;
}
}
if (fd >= 0) {
@@ -4637,3 +4640,4 @@ PerlIO_sprintf(char *s, int n, const char *fmt, ...)
+