From 4fd06c19bf8ca057f4a60f762568158fb0caa8ec Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 12 May 2017 08:32:59 +0200 Subject: Try once more to initialize git_buf portably... --- tests/hawd/state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { #ifdef HAVE_LIBGIT2 git_libgit2_init(); - git_buf root = {0}; + git_buf root = GIT_BUF_INIT_CONST(0, 0); int error = git_repository_discover(&root, projectPath().toStdString().data(), 0, NULL); if (!error) { git_repository *repo = NULL; -- cgit v1.2.3