@@ -184,8 +184,8 @@ static int url_parse_authority(
184184 const char * authority ,
185185 size_t len )
186186{
187- const char * c , * hostport_end , * host_end = NULL ,
188- * userpass_end , * user_end = NULL ;
187+ const char * c , * hostport_end = NULL , * host_end = NULL ,
188+ * userpass_end = NULL , * user_end = NULL ;
189189
190190 enum {
191191 HOSTPORT , HOST , IPV6 , HOST_END , USERPASS , USER
@@ -464,7 +464,7 @@ static int url_parse_finalize(git_net_url *url, git_net_url_parser *parser)
464464int git_net_url_parse (git_net_url * url , const char * given )
465465{
466466 git_net_url_parser parser = GIT_NET_URL_PARSER_INIT ;
467- const char * c , * authority , * path ;
467+ const char * c , * authority = NULL , * path = NULL ;
468468 size_t authority_len = 0 , path_len = 0 ;
469469 int error = 0 ;
470470
@@ -574,7 +574,7 @@ int git_net_url_parse_http(
574574 const char * given )
575575{
576576 git_net_url_parser parser = GIT_NET_URL_PARSER_INIT ;
577- const char * c , * authority , * path = NULL ;
577+ const char * c = NULL , * authority = NULL , * path = NULL ;
578578 size_t authority_len = 0 , path_len = 0 ;
579579 int error ;
580580
@@ -661,7 +661,7 @@ static bool has_at(const char *str)
661661int git_net_url_parse_scp (git_net_url * url , const char * given )
662662{
663663 const char * default_port = default_port_for_scheme ("ssh" );
664- const char * c , * user , * host , * port = NULL , * path = NULL ;
664+ const char * c , * user = NULL , * host = NULL , * port = NULL , * path = NULL ;
665665 size_t user_len = 0 , host_len = 0 , port_len = 0 ;
666666 unsigned short bracket = 0 ;
667667
0 commit comments