[PATCH] git-local-fetch: Avoid calling close(-1)
authorSergey Vlasov <vsu@altlinux.ru>
Fri, 23 Sep 2005 12:28:28 +0000 (16:28 +0400)
committerJunio C Hamano <junkio@cox.net>
Fri, 23 Sep 2005 21:30:45 +0000 (14:30 -0700)
commit1a951815ddaa4e4b570cc67e204f45e9a12841e0
tree8a44a8e894c6239dd063dcaf841f63e6c35fc9cb
parent8be707de55e473a5d850a1fcdc6e30589a37d548
[PATCH] git-local-fetch: Avoid calling close(-1)

After open() failure, copy_file() called close(ifd) with ifd == -1
(harmless, but causes Valgrind noise).  The same thing was possible
for the destination file descriptor.

Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: Junio C Hamano <junkio@cox.net>
local-fetch.c