OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cce044d
)
sha1_file: remove an used fd variable
author
Sebastian Schuberth
<sschuberth@gmail.com>
Sun, 16 Apr 2017 19:04:01 +0000
(19:04 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 17 Apr 2017 04:29:18 +0000
(21:29 -0700)
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c
patch
|
blob
|
history
diff --git
a/sha1_file.c
b/sha1_file.c
index
b2c6648
..
1356ecb
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;
}