projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Another config file parsing fix.
[git.git]
/
read-cache.c
diff --git
a/read-cache.c
b/read-cache.c
index
f97f92d
..
a917ab0
100644
(file)
--- a/
read-cache.c
+++ b/
read-cache.c
@@
-552,7
+552,7
@@
int read_cache(void)
active_nr = ntohl(hdr->hdr_entries);
active_alloc = alloc_nr(active_nr);
active_nr = ntohl(hdr->hdr_entries);
active_alloc = alloc_nr(active_nr);
- active_cache = calloc(active_alloc, sizeof(struct cache_entry *));
+ active_cache =
x
calloc(active_alloc, sizeof(struct cache_entry *));
offset = sizeof(*hdr);
for (i = 0; i < active_nr; i++) {
offset = sizeof(*hdr);
for (i = 0; i < active_nr; i++) {