Commit 29b77446b7237204ddd7fee36c0ad3b4c9513715

Ben Straub 2013-10-30T15:38:52

Initialize variables

diff --git a/src/transports/git.c b/src/transports/git.c
index 3a0b863..79a9e7d 100644
--- a/src/transports/git.c
+++ b/src/transports/git.c
@@ -179,7 +179,7 @@ static int _git_uploadpack_ls(
 	const char *url,
 	git_smart_subtransport_stream **stream)
 {
-	char *host, *port, *user=NULL, *pass=NULL;
+	char *host=NULL, *port=NULL, *user=NULL, *pass=NULL;
 	git_stream *s;
 
 	*stream = NULL;
@@ -235,7 +235,7 @@ static int _git_receivepack_ls(
 	const char *url,
 	git_smart_subtransport_stream **stream)
 {
-	char *host, *port, *user=NULL, *pass=NULL;
+	char *host=NULL, *port=NULL, *user=NULL, *pass=NULL;
 	git_stream *s;
 
 	*stream = NULL;