mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
smart: initialize the error variable
This commit is contained in:
@@ -79,7 +79,7 @@ int git_smart__update_heads(transport_smart *t, git_vector *symrefs)
|
||||
git_refspec *spec;
|
||||
git_buf buf = GIT_BUF_INIT;
|
||||
size_t j;
|
||||
int error;
|
||||
int error = 0;
|
||||
|
||||
git_vector_foreach(symrefs, j, spec) {
|
||||
git_buf_clear(&buf);
|
||||
|
||||
Reference in New Issue
Block a user