Code

[PATCH] Buglets fix in the new two scripts
[git.git] / tree.c
diff --git a/tree.c b/tree.c
index d448daeab172a2a8b1a1c0624319f3f0096d40c0..aa55ddb6846bdc33abf9d41424d105e1b2331640 100644 (file)
--- a/tree.c
+++ b/tree.c
@@ -133,7 +133,7 @@ int parse_tree_buffer(struct tree *item, void *buffer, unsigned long size)
                }
                if (obj)
                        add_ref(&item->object, obj);
-
+               entry->parent = NULL; /* needs to be filled by the user */
                *list_p = entry;
                list_p = &entry->next;
        }