Commit 9331f98a by Carlos Martín Nieto

smart: initialize the error variable

parent 4c4408c3
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment