mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 20:42:23 +00:00
smart: initialize the error variable
This commit is contained in:
parent
4c4408c351
commit
9331f98aca
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user