summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-12 08:32:59 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-12 08:33:57 +0200
commit4fd06c19bf8ca057f4a60f762568158fb0caa8ec (patch)
tree1f51a0d964cf6d72e70968268840a64da809917b /tests
parent497b88f48e634a00ae952afc1776e317c9da460a (diff)
downloadsink-4fd06c19bf8ca057f4a60f762568158fb0caa8ec.tar.gz
sink-4fd06c19bf8ca057f4a60f762568158fb0caa8ec.zip
Try once more to initialize git_buf portably...
Diffstat (limited to 'tests')
-rw-r--r--tests/hawd/state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hawd/state.cpp b/tests/hawd/state.cpp
index dfeef41..a994718 100644
--- a/tests/hawd/state.cpp
+++ b/tests/hawd/state.cpp
@@ -117,7 +117,7 @@ void State::findGitHash()
117{ 117{
118#ifdef HAVE_LIBGIT2 118#ifdef HAVE_LIBGIT2
119 git_libgit2_init(); 119 git_libgit2_init();
120 git_buf root = {0}; 120 git_buf root = GIT_BUF_INIT_CONST(0, 0);
121 int error = git_repository_discover(&root, projectPath().toStdString().data(), 0, NULL); 121 int error = git_repository_discover(&root, projectPath().toStdString().data(), 0, NULL);
122 if (!error) { 122 if (!error) {
123 git_repository *repo = NULL; 123 git_repository *repo = NULL;