Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/loose-object-fsck'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 24 Apr 2017 05:07:50 +0000
(22:07 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 24 Apr 2017 05:07:50 +0000
(22:07 -0700)
Code cleanup.
* jk/loose-object-fsck:
sha1_file: remove an used fd variable
sha1_file.c
patch
|
blob
|
history
raw
(from parent 1:
5bceab4
)
diff --git
a/sha1_file.c
b/sha1_file.c
index 1577e2d7dd4f38462b7b33c02b888eed3f4ca2c6..59a4ed2ed32336b41ab8f3b1d4aca30f045aa084 100644
(file)
--- 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;
}