From: Sergey Vlasov Date: Fri, 23 Sep 2005 12:28:28 +0000 (+0400) Subject: [PATCH] git-local-fetch: Avoid calling close(-1) X-Git-Tag: v0.99.7c~2^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/1a951815ddaa4e4b570cc67e204f45e9a12841e0?ds=inline;hp=1a951815ddaa4e4b570cc67e204f45e9a12841e0 [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 Signed-off-by: Junio C Hamano ---