mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-22 22:23:05 +00:00
tests/pack: fixup 6774b10
Initialize the hash ctx with git_hash_ctx_init, not git_hash_init.
This commit is contained in:
parent
989abe9be4
commit
be225be785
@ -106,9 +106,10 @@ void test_pack_packbuilder__create_pack(void)
|
|||||||
|
|
||||||
cl_git_pass(git_futils_readbuffer(&buf, "testpack.pack"));
|
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_update(&ctx, buf.ptr, buf.size));
|
||||||
cl_git_pass(git_hash_final(&hash, &ctx));
|
cl_git_pass(git_hash_final(&hash, &ctx));
|
||||||
|
git_hash_ctx_cleanup(&ctx);
|
||||||
|
|
||||||
git_buf_free(&buf);
|
git_buf_free(&buf);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user