summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 23676d4)
raw | patch | inline | side by side (parent: 23676d4)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 28 Jun 2005 21:55:16 +0000 (14:55 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Tue, 28 Jun 2005 22:12:25 +0000 (15:12 -0700) |
This was causing random segfaults, because use_packed_git() got
confused by random garbage there.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
confused by random garbage there.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
sha1_file.c | patch | blob | history |
diff --git a/sha1_file.c b/sha1_file.c
index 6e3fd180f90bb6edf36095978baa2d35b772d21c..5c6e964a35d973fde9d3d29d643552324bcb15f3 100644 (file)
--- a/sha1_file.c
+++ b/sha1_file.c
p->pack_size = st.st_size;
p->index_base = idx_map;
p->next = NULL;
+ p->pack_base = NULL;
p->pack_last_used = 0;
return p;
}