summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f1257f3)
raw | patch | inline | side by side (parent: f1257f3)
author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Mon, 11 Apr 2005 06:33:52 +0000 (23:33 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Mon, 11 Apr 2005 06:33:52 +0000 (23:33 -0700) |
properly clear the reference count at init time. It happened to work
for me by pure luck.
Until it broke, and my unreferenced commit suddenly looked referenced
again. Fixed.
for me by pure luck.
Until it broke, and my unreferenced commit suddenly looked referenced
again. Fixed.
fsck-cache.c | patch | blob | history |
diff --git a/fsck-cache.c b/fsck-cache.c
index 87366f0e535386771b734f02fe5257a5b0e1c9c9..bb5cf196af7f06a3aea6fcfc5941565110c94b27 100644 (file)
--- a/fsck-cache.c
+++ b/fsck-cache.c
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));