Skip to content

Commit 9331f98

Browse files
committed
smart: initialize the error variable
1 parent 4c4408c commit 9331f98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transports/smart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ int git_smart__update_heads(transport_smart *t, git_vector *symrefs)
7979
git_refspec *spec;
8080
git_buf buf = GIT_BUF_INIT;
8181
size_t j;
82-
int error;
82+
int error = 0;
8383

8484
git_vector_foreach(symrefs, j, spec) {
8585
git_buf_clear(&buf);

0 commit comments

Comments
 (0)