Cut-and-pasto.
Jarkko Hietaniemi [Mon, 23 Apr 2001 23:57:35 +0000 (23:57 +0000)]
p4raw-id: //depot/perl@9804

perlio.c

index dc1bba1..13ef151 100644 (file)
--- a/perlio.c
+++ b/perlio.c
@@ -853,7 +853,7 @@ PerlIO_fdupopen(pTHX_ PerlIO *f)
  else
   {
    SETERRNO(EBADF,SS$_IVCHAN);
-   return -1;
+   return NULL;
   }
 }