fast-import: Fix uninitialized variable
authorSimon Hausmann <redacted>
Wed, 23 May 2007 21:00:22 +0000 (23:00 +0200)
committerShawn O. Pearce <redacted>
Thu, 24 May 2007 03:36:47 +0000 (23:36 -0400)
Fix uninitialized last_object->no_free variable that is accessed in
store_object.

Signed-off-by: Simon Hausmann <redacted>
Signed-off-by: Shawn O. Pearce <redacted>
fast-import.c

index 3a2d5ed8e667af06f97d2559b3cffb8a01f94565..03f5ca7998a16203e72a15ee1f167fcfe8102861 100644 (file)
@@ -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;
git clone https://git.99rst.org/PROJECT