Commit be225be7852fc8e4a385b622d24ea35fff761421

Michael Schubert 2013-02-25T23:36:25

tests/pack: fixup 6774b10 Initialize the hash ctx with git_hash_ctx_init, not git_hash_init.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/tests-clar/pack/packbuilder.c b/tests-clar/pack/packbuilder.c
index 84fc4d7..6dc1c76 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);