]> sourceware.org Git - newlib-cygwin.git/commitdiff
* dtable.cc (dtable::init_std_file_from_handle): Don't treat NULL
authorCorinna Vinschen <corinna@vinschen.de>
Sat, 5 Jan 2002 18:42:52 +0000 (18:42 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Sat, 5 Jan 2002 18:42:52 +0000 (18:42 +0000)
handle as errorneous.

winsup/cygwin/ChangeLog
winsup/cygwin/dtable.cc

index 3d41c7b919d4ddec97f8754d4a1779c58a54141e..f167687cb2a602b6b2fd457b10cad1b7e079024d 100644 (file)
@@ -1,3 +1,8 @@
+2001-01-05  Corinna Vinschen  <corinna@vinschen.de>
+
+       * dtable.cc (dtable::init_std_file_from_handle): Don't treat NULL
+       handle as errorneous.
+
 2002-01-04  Christopher Faylor  <cgf@redhat.com>
 
        * cygmagic: Change logic for equality test.
index a6f5b075c713032b940d92a7c387b8cc90cc7b56..0fe747e43c1c137fc78b86f7c15fce3d548be44a 100644 (file)
@@ -196,7 +196,7 @@ dtable::init_std_file_from_handle (int fd, HANDLE handle, DWORD myaccess)
 
   first_fd_for_open = 0;
 
-  if (!handle || handle == INVALID_HANDLE_VALUE)
+  if (handle == INVALID_HANDLE_VALUE)
     return;
 
   if (__fmode)
This page took 0.031242 seconds and 5 git commands to generate.