Fix open(FH,"Via(Foo)","NonExistant") and other cases when
Nick Ing-Simmons [Tue, 9 Jul 2002 16:59:29 +0000 (16:59 +0000)]
:stdio as lower layer fails.

p4raw-id: //depot/perlio@17446

perlio.c

index 925920d..3cce842 100644 (file)
--- 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, ...)
 
 
 
+