diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-11 11:58:15 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-11 11:58:15 +0200 |
commit | bebbc07a1c517fd9020a83a5de3efcca5b0dccca (patch) | |
tree | 49b9873503a285adc985fe619153cd5d2b808d08 /tests/hawd/state.cpp | |
parent | 89c5405f200bed5f255fbf26602318b3f6426e9d (diff) | |
download | sink-bebbc07a1c517fd9020a83a5de3efcca5b0dccca.tar.gz sink-bebbc07a1c517fd9020a83a5de3efcca5b0dccca.zip |
Fixed benchmark
Diffstat (limited to 'tests/hawd/state.cpp')
-rw-r--r-- | tests/hawd/state.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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() | |||
117 | { | 117 | { |
118 | #ifdef HAVE_LIBGIT2 | 118 | #ifdef HAVE_LIBGIT2 |
119 | git_libgit2_init(); | 119 | git_libgit2_init(); |
120 | git_buf root; | 120 | git_buf root = {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; |