projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] ls-tree for listing trees
[git.git]
/
fsck-cache.c
diff --git
a/fsck-cache.c
b/fsck-cache.c
index
87366f0
..
bb5cf19
100644
(file)
--- a/
fsck-cache.c
+++ b/
fsck-cache.c
@@
-106,7
+106,7
@@
static int mark_sha1_seen(unsigned char *sha1, char *tag)
seen = realloc(seen, alloc_seen*sizeof(struct seen));
}
s = seen + nr_seen;
- memset(s, 0, sizeof(s));
+ memset(s, 0, sizeof(
*
s));
nr_seen++;
memcpy(s->sha1, sha1, 20);
strncpy(s->tag, tag, sizeof(s->tag));