Commit f0593a6b5215b85bfcf4ef07643395710ebe4e37

Edward Thomson 2015-03-17T18:35:28

Merge pull request #2991 from sba1/fix-uninitialized-data-access-remote-update-tips Initialize refs vector in git_remote_update_tips().

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/remote.c b/src/remote.c
index 4924bf8..bdb4b31 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -1458,7 +1458,7 @@ int git_remote_update_tips(
 		const char *reflog_message)
 {
 	git_refspec *spec, tagspec;
-	git_vector refs;
+	git_vector refs = GIT_VECTOR_INIT;
 	int error;
 	size_t i;