diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2002-07-09 16:59:29 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2002-07-09 16:59:29 +0000 |
commit | 602c3c4b6f5b561b590efa06fdef6c029706eab5 (patch) | |
tree | ad7c919e2f6f72bc2d602ea586be627a42220eaf /perlio.c | |
parent | fc0405385301b68772b81b5092d6e41c308340c2 (diff) | |
download | perl-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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, ...) + |