提交 b259157f 编写于 作者: S Simon Hausmann 提交者: Shawn O. Pearce

fast-import: Fix uninitialized variable

Fix uninitialized last_object->no_free variable that is accessed in
store_object.
Signed-off-by: NSimon Hausmann <simon@lst.de>
Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
上级 7ca055f7
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册