Cygwin: pipes: nt_create: set read handle to NULL in error case

Fix accidentally setting read handle to INVALID_HANDLE_VALUE in a
single error case.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2021-09-03 10:59:02 +02:00
parent ea9c0bbedc
commit 82643bd18e
1 changed files with 1 additions and 1 deletions

View File

@ -811,7 +811,7 @@ nt_create (LPSECURITY_ATTRIBUTES sa_ptr, HANDLE &r, HANDLE &w,
__seterrno_from_nt_status (status);
err = GetLastError ();
debug_printf ("failed, %E");
r = INVALID_HANDLE_VALUE;
r = NULL;
}
}
}