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>
Simon Hausmann committed
May 23, 2007 at 23:00 UTC
b259157f3c8705e0f775a3df2b33198499aede4f
1 file changed
+1
fast-import.c
+1
@@ -1122,6 +1122,7 @@ static void store_tree(struct tree_entry *root)
1122
|| le->pack_id != pack_id) {
1123
lo.data = NULL;
1124
lo.depth = 0;
1125
+ lo.no_free = 0;
1126
} else {
1127
mktree(t, 0, &lo.len, &old_tree);
1128
lo.data = old_tree.buffer;