diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-08 23:38:36 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-08 23:38:36 +0200 |
commit | 32a2d9b61193db0a3f7ab6f45113c7d3d1ce6a92 (patch) | |
tree | 8ee4c117aaeaf30686076dc8006686ebb8f7158d /tests | |
parent | a213eff8a6ec034d01df9a36d8fddae8f2be2ac1 (diff) | |
download | sink-32a2d9b61193db0a3f7ab6f45113c7d3d1ce6a92.tar.gz sink-32a2d9b61193db0a3f7ab6f45113c7d3d1ce6a92.zip |
Fixed warnings
Diffstat (limited to 'tests')
-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 dfeef41..46b5f28 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; |
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; |