diff options
Diffstat (limited to 'src/iterator.c')
-rw-r--r-- | src/iterator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iterator.c b/src/iterator.c index 805a3c987..5b5ed9525 100644 --- a/src/iterator.c +++ b/src/iterator.c @@ -578,7 +578,7 @@ int git_iterator_for_tree( if (tree == NULL) return git_iterator_for_nothing(iter, flags, start, end); - if ((error = git_tree__dup(&tree, tree)) < 0) + if ((error = git_object_dup((git_object **)&tree, (git_object *)tree)) < 0) return error; ITERATOR_BASE_INIT(ti, tree, TREE, git_tree_owner(tree)); |