mirror of
https://git.proxmox.com/git/libgit2
synced 2025-12-07 12:08:42 +00:00
tests-clar/notes: init oid before using
Reported-by: Carlos Martín Nieto <carlos@cmartin.tk> Signed-off-by: schu <schu-github@schulog.org>
This commit is contained in:
parent
f01fa26690
commit
aa4254d92e
@ -26,6 +26,7 @@ void test_notes_notes__1(void)
|
||||
git_oid oid, note_oid;
|
||||
|
||||
cl_git_pass(git_signature_now(&_sig, "alice", "alice@example.com"));
|
||||
cl_git_pass(git_oid_fromstr(&oid, "8496071c1b46c854b31185ea97743be6a8774479"));
|
||||
|
||||
cl_git_pass(git_note_create(¬e_oid, _repo, _sig, _sig, "refs/notes/some/namespace", &oid, "hello world\n"));
|
||||
cl_git_pass(git_note_create(¬e_oid, _repo, _sig, _sig, NULL, &oid, "hello world\n"));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user