diff options
Diffstat (limited to 'unpack-trees.c')
-rw-r--r-- | unpack-trees.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/unpack-trees.c b/unpack-trees.c index 2e2232cbb0..ee10eea24c 100644 --- a/unpack-trees.c +++ b/unpack-trees.c @@ -27,8 +27,7 @@ static struct tree_entry_list *create_tree_entry_list(struct tree *tree) if (!tree->object.parsed) parse_tree(tree); - desc.buf = tree->buffer; - desc.size = tree->size; + init_tree_desc(&desc, tree->buffer, tree->size); while (tree_entry(&desc, &one)) { struct tree_entry_list *entry; |