diff options
Diffstat (limited to 'list-objects.c')
-rw-r--r-- | list-objects.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/list-objects.c b/list-objects.c index f1fa21c397..2ba2c958e0 100644 --- a/list-objects.c +++ b/list-objects.c @@ -49,8 +49,7 @@ static void process_tree(struct rev_info *revs, me.elem = name; me.elem_len = strlen(name); - desc.buf = tree->buffer; - desc.size = tree->size; + init_tree_desc(&desc, tree->buffer, tree->size); while (tree_entry(&desc, &entry)) { if (S_ISDIR(entry.mode)) |