summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2015-08-28 12:32:45 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-08-28 12:32:45 -0700
commitaecce6d0eff68a7144e32247d2e02d9974772ab1 (patch)
tree57f1223d90a5270e23933913eb05713fde4c8aac /compat
parentSeventh batch for 2.6 (diff)
parentGit 2.5.1 (diff)
downloadtgif-aecce6d0eff68a7144e32247d2e02d9974772ab1.tar.xz
Sync with 2.5.1
Diffstat (limited to 'compat')
-rw-r--r--compat/mingw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/mingw.c b/compat/mingw.c
index 496e6f8bb0..f74da235f5 100644
--- a/compat/mingw.c
+++ b/compat/mingw.c
@@ -681,7 +681,7 @@ int pipe(int filedes[2])
return -1;
}
filedes[1] = _open_osfhandle((int)h[1], O_NOINHERIT);
- if (filedes[0] < 0) {
+ if (filedes[1] < 0) {
close(filedes[0]);
CloseHandle(h[1]);
return -1;