From 29b77446b7237204ddd7fee36c0ad3b4c9513715 Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Wed, 30 Oct 2013 15:38:52 -0700 Subject: [PATCH] Initialize variables --- src/transports/git.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transports/git.c b/src/transports/git.c index 3a0b86345..79a9e7dd4 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;