smart: initialize the error variable

This commit is contained in:
Carlos Martín Nieto 2014-05-22 12:52:31 +02:00
parent 4c4408c351
commit 9331f98aca

View File

@ -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);