diff options
author | Ben Straub <bs@github.com> | 2013-10-30 15:38:52 -0700 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2013-10-30 15:38:52 -0700 |
commit | 29b77446b7237204ddd7fee36c0ad3b4c9513715 (patch) | |
tree | 0a9e28dd5bbb1d4ea4c3a234b59d1cc244c68be8 /src/transports | |
parent | cc7453417f6ab4783d1211a0562fa3ea438649b2 (diff) | |
download | libgit2-29b77446b7237204ddd7fee36c0ad3b4c9513715.tar.gz |
Initialize variables
Diffstat (limited to 'src/transports')
-rw-r--r-- | src/transports/git.c | 4 |
1 files 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; |