Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schubert <schu@schu.io>2013-02-26 02:36:25 +0400
committerMichael Schubert <schu@schu.io>2013-02-26 02:36:25 +0400
commitbe225be7852fc8e4a385b622d24ea35fff761421 (patch)
tree5859edfee5371e43cbadc6cca880cd22ff8a9661 /tests-clar/pack
parent989abe9be4b200be0c31538834036188e970cf54 (diff)
tests/pack: fixup 6774b10
Initialize the hash ctx with git_hash_ctx_init, not git_hash_init.
Diffstat (limited to 'tests-clar/pack')
-rw-r--r--tests-clar/pack/packbuilder.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests-clar/pack/packbuilder.c b/tests-clar/pack/packbuilder.c
index 84fc4d7bd..6dc1c76fe 100644
--- a/tests-clar/pack/packbuilder.c
+++ b/tests-clar/pack/packbuilder.c
@@ -106,9 +106,10 @@ void test_pack_packbuilder__create_pack(void)
cl_git_pass(git_futils_readbuffer(&buf, "testpack.pack"));
- cl_git_pass(git_hash_init(&ctx));
+ cl_git_pass(git_hash_ctx_init(&ctx));
cl_git_pass(git_hash_update(&ctx, buf.ptr, buf.size));
cl_git_pass(git_hash_final(&hash, &ctx));
+ git_hash_ctx_cleanup(&ctx);
git_buf_free(&buf);