diff options
author | Edward Thomson <ethomson@github.com> | 2016-02-17 18:04:19 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@github.com> | 2016-03-23 17:08:37 -0400 |
commit | f0224772ee4300d55e11ab6f84cb3dd64b35ecfd (patch) | |
tree | 5f4857f12f0268973f8d4a758043413f4b164f0d /src/iterator.c | |
parent | 684b35c41b9166645e2edb9bc708aa7ddf9c1f24 (diff) | |
download | libgit2-f0224772ee4300d55e11ab6f84cb3dd64b35ecfd.tar.gz |
git_object_dup: introduce typesafe versions
Diffstat (limited to 'src/iterator.c')
-rw-r--r-- | src/iterator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/iterator.c b/src/iterator.c index f7b87fc1e..14182a850 100644 --- a/src/iterator.c +++ b/src/iterator.c @@ -820,7 +820,7 @@ int git_iterator_for_tree( if (tree == NULL) return git_iterator_for_nothing(iter, options); - if ((error = git_object_dup((git_object **)&tree, (git_object *)tree)) < 0) + if ((error = git_tree_dup(&tree, tree)) < 0) return error; ti = git__calloc(1, sizeof(tree_iterator)); @@ -1849,7 +1849,7 @@ int git_iterator_for_workdir_ext( return error; } - if (tree && (error = git_object_dup((git_object **)&wi->tree, (git_object *)tree)) < 0) + if (tree && (error = git_tree_dup(&wi->tree, tree)) < 0) return error; wi->index = index; |