Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
sha1_file: remove an used fd variable
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index b2c66480852c458f79f794a47de7d76c854097a0..1356ecb874faf78c6537dfc3b4cfbd220f990881 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-3870,7
+3870,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;
@@
-3920,7
+3919,5
@@
int read_loose_object(const char *path,
out:
if (map)
munmap(map, mapsize);
- if (fd >= 0)
- close(fd);
return ret;
}