diff options
author | Simon Hausmann <simon@lst.de> | 2007-05-23 23:00:22 +0200 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-05-23 23:36:47 -0400 |
commit | b259157f3c8705e0f775a3df2b33198499aede4f (patch) | |
tree | 838121850917580a7860fb7001a39b0945c91701 | |
parent | 7ca055f75ad7ffd2251d4b607fbb86d7bcfd77c7 (diff) | |
download | git-b259157f3c8705e0f775a3df2b33198499aede4f.tar.gz git-b259157f3c8705e0f775a3df2b33198499aede4f.tar.xz |
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>
-rw-r--r-- | fast-import.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fast-import.c b/fast-import.c index 3a2d5ed8e..03f5ca799 100644 --- a/fast-import.c +++ b/fast-import.c @@ -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; |