[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>
This commit is contained in:
parent
23676d407c
commit
d85a4feeee
@ -396,6 +396,7 @@ static struct packed_git *add_packed_git(char *path, int path_len)
|
|||||||
p->pack_size = st.st_size;
|
p->pack_size = st.st_size;
|
||||||
p->index_base = idx_map;
|
p->index_base = idx_map;
|
||||||
p->next = NULL;
|
p->next = NULL;
|
||||||
|
p->pack_base = NULL;
|
||||||
p->pack_last_used = 0;
|
p->pack_last_used = 0;
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user