Skip to content

Commit

Permalink
rev-list: fix process_tree() conversion.
Browse files Browse the repository at this point in the history
The tree-walking conversion of the "process_tree()" function
broke packing by using an unrelated variable from outer scope.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Linus Torvalds authored and Junio C Hamano committed Jun 5, 2006
1 parent 2befe6f commit 87cefaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin-rev-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ static struct object_list **process_tree(struct tree *tree,

while (tree_entry(&desc, &entry)) {
if (S_ISDIR(entry.mode))
p = process_tree(lookup_tree(entry.sha1), p, &me, name);
p = process_tree(lookup_tree(entry.sha1), p, &me, entry.path);
else
p = process_blob(lookup_blob(entry.sha1), p, &me, name);
p = process_blob(lookup_blob(entry.sha1), p, &me, entry.path);
}
free(tree->buffer);
tree->buffer = NULL;
Expand Down

0 comments on commit 87cefaa

Please sign in to comment.