From b259157f3c8705e0f775a3df2b33198499aede4f Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 23 May 2007 23:00:22 +0200 Subject: fast-import: Fix uninitialized variable Fix uninitialized last_object->no_free variable that is accessed in store_object. Signed-off-by: Simon Hausmann Signed-off-by: Shawn O. Pearce diff --git a/fast-import.c b/fast-import.c index 3a2d5ed..03f5ca7 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; -- cgit v0.10.2-6-g49f6