Mingw: verify both ends of the pipe () call

The code to open and test the second end of the pipe clearly imitates the code for the first end. A little too closely, though... Let's fix the obvious copy-edit bug. Signed-off-by: Jose F. Morales <jfmcjf@gmail.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Acked-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jose F. Morales committed Aug 28, 2015 at 09:43 UTC c3cb7b6fecd4fe00b002e5a90a7a91f148c50248
1 file changed +1 -1
compat/mingw.c
+1 -1
@@ -681,7 +681,7 @@ int pipe(int filedes[2])
681 return -1;
682 }
683 filedes[1] = _open_osfhandle((int)h[1], O_NOINHERIT);
684 - if (filedes[0] < 0) {
684 + if (filedes[1] < 0) {
685 close(filedes[0]);
686 CloseHandle(h[1]);
687 return -1;