summaryrefslogtreecommitdiff
path: root/src/iterator.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2013-04-10 16:55:29 +0200
committerVicent Marti <tanoku@gmail.com>2013-04-10 16:56:32 +0200
commit575a54db856947aeb4fc5cf1977844d22dfa1aab (patch)
treeed78187ff5d5d489888ea0740ec22c1968dbd218 /src/iterator.c
parent90431f1b80cc72c6cc4165665c9c46b6292daee5 (diff)
downloadlibgit2-575a54db856947aeb4fc5cf1977844d22dfa1aab.tar.gz
object: Export git_object_dup
Diffstat (limited to 'src/iterator.c')
-rw-r--r--src/iterator.c2
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));