diff options
author | Junio C Hamano <junkio@cox.net> | 2005-06-28 14:55:16 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-28 15:12:25 -0700 |
commit | d85a4feeee2cb94ff7060de45a5421f575ddf7b8 (patch) | |
tree | b8015ec53eac91f49abcb30e6b9f66c6e42a5993 | |
parent | [PATCH] Adjust fsck-cache to packed GIT and alternate object pool. (diff) | |
download | tgif-d85a4feeee2cb94ff7060de45a5421f575ddf7b8.tar.xz |
[PATCH] Bugfix: initialize pack_base to NULL.
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>
-rw-r--r-- | sha1_file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sha1_file.c b/sha1_file.c index 6e3fd180f9..5c6e964a35 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -396,6 +396,7 @@ static struct packed_git *add_packed_git(char *path, int path_len) 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; } |