mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
fast-import: Fix uninitialized variable
Fix uninitialized last_object->no_free variable that is accessed in store_object. Signed-off-by: Simon Hausmann <simon@lst.de> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
7ca055f75a
commit
b259157f3c
|
@ -1122,6 +1122,7 @@ static void store_tree(struct tree_entry *root)
|
|||
|| le->pack_id != pack_id) {
|
||||
lo.data = NULL;
|
||||
lo.depth = 0;
|
||||
lo.no_free = 0;
|
||||
} else {
|
||||
mktree(t, 0, &lo.len, &old_tree);
|
||||
lo.data = old_tree.buffer;
|
||||
|
|
Loading…
Reference in a new issue