projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] nsec portability
[git.git]
/
read-cache.c
diff --git
a/read-cache.c
b/read-cache.c
index
d8b383f
..
e3d3ddb
100644
(file)
--- a/
read-cache.c
+++ b/
read-cache.c
@@
-136,7
+136,7
@@
void *map_sha1_file(const unsigned char *sha1, unsigned long *size)
return NULL;
}
if (fstat(fd, &st) < 0) {
- close(fd);
+ close(fd);
return NULL;
}
map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);