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/commit.c | |
parent | 684b35c41b9166645e2edb9bc708aa7ddf9c1f24 (diff) | |
download | libgit2-f0224772ee4300d55e11ab6f84cb3dd64b35ecfd.tar.gz |
git_object_dup: introduce typesafe versions
Diffstat (limited to 'src/commit.c')
-rw-r--r-- | src/commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c index aaefacdab..5456751fe 100644 --- a/src/commit.c +++ b/src/commit.c @@ -615,7 +615,7 @@ int git_commit_nth_gen_ancestor( assert(ancestor && commit); - if (git_object_dup((git_object **) ¤t, (git_object *) commit) < 0) + if (git_commit_dup(¤t, (git_commit *)commit) < 0) return -1; if (n == 0) { |