summaryrefslogtreecommitdiff
path: root/tests-clar/notes/notes.c
diff options
context:
space:
mode:
authorschu <schu-github@schulog.org>2012-02-23 23:27:29 +0100
committerschu <schu-github@schulog.org>2012-02-23 23:38:48 +0100
commitaa4254d92eb540e6346389691c06977cf50338e3 (patch)
tree45389590c14abc2b936ab215d0bb03733fa69a7a /tests-clar/notes/notes.c
parentf01fa26690d28efe9f73daf81d0ba11b2b77ccbc (diff)
downloadlibgit2-aa4254d92eb540e6346389691c06977cf50338e3.tar.gz
tests-clar/notes: init oid before using
Reported-by: Carlos Martín Nieto <carlos@cmartin.tk> Signed-off-by: schu <schu-github@schulog.org>
Diffstat (limited to 'tests-clar/notes/notes.c')
-rw-r--r--tests-clar/notes/notes.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests-clar/notes/notes.c b/tests-clar/notes/notes.c
index eeb25eca0..0e9a165a6 100644
--- a/tests-clar/notes/notes.c
+++ b/tests-clar/notes/notes.c
@@ -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(&note_oid, _repo, _sig, _sig, "refs/notes/some/namespace", &oid, "hello world\n"));
cl_git_pass(git_note_create(&note_oid, _repo, _sig, _sig, NULL, &oid, "hello world\n"));