From bebbc07a1c517fd9020a83a5de3efcca5b0dccca Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 11 May 2017 11:58:15 +0200 Subject: Fixed benchmark --- tests/hawd/state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/hawd/state.cpp') diff --git a/tests/hawd/state.cpp b/tests/hawd/state.cpp index 46b5f28..dfeef41 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; + git_buf root = {0}; int error = git_repository_discover(&root, projectPath().toStdString().data(), 0, NULL); if (!error) { git_repository *repo = NULL; -- cgit v1.2.3