Skip to content

Commit

Permalink
fast-import: Fix uninitialized variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Simon Hausmann authored and Shawn O. Pearce committed May 24, 2007
1 parent 7ca055f commit b259157
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fast-import.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b259157

Please sign in to comment.