Commit eecc177272cc97b13e11e35e8a67e8a7507d482a

Carlos Martín Nieto 2014-10-09T17:02:11

Fix an uninitialized variable

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/remote.c b/src/remote.c
index 432367d..dc9cae1 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -821,7 +821,7 @@ static int ls_to_vector(git_vector *out, git_remote *remote)
 
 int git_remote_download(git_remote *remote, const git_strarray *refspecs)
 {
-	int error;
+	int error = -1;
 	size_t i;
 	git_vector refs, specs, *to_active;