Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-04-24 08:07:50 +0300
committerJunio C Hamano <gitster@pobox.com>2017-04-24 08:07:50 +0300
commitd7f8a37852fe26df530327b4131c92b2058ecd08 (patch)
tree4ba31171877013058e17e404bd6f0cb95e41f7fd /sha1_file.c
parent5bceab4113f89eb29d0a737961f43135bf83d2d9 (diff)
parent0747fb49fd23945843e8824cb56c4463b10a34e0 (diff)
Merge branch 'jk/loose-object-fsck'
Code cleanup. * jk/loose-object-fsck: sha1_file: remove an used fd variable
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sha1_file.c b/sha1_file.c
index 1577e2d7dd..59a4ed2ed3 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -3972,7 +3972,6 @@ int read_loose_object(const char *path,
void **contents)
{
int ret = -1;
- int fd = -1;
void *map = NULL;
unsigned long mapsize;
git_zstream stream;
@@ -4022,7 +4021,5 @@ int read_loose_object(const char *path,
out:
if (map)
munmap(map, mapsize);
- if (fd >= 0)
- close(fd);
return ret;
}