a few more variables set to NULL

This commit is contained in:
Nathan Baird
2025-10-29 09:43:38 -07:00
parent 00db738718
commit ecc995f566
2 changed files with 5 additions and 2 deletions

3
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"sarif-viewer.connectToGithubCodeScanning": "off"
}

View File

@@ -184,7 +184,7 @@ static int url_parse_authority(
const char *authority, const char *authority,
size_t len) size_t len)
{ {
const char *c, *hostport_end, *host_end = NULL, const char *c, *hostport_end = NULL, *host_end = NULL,
*userpass_end = NULL, *user_end = NULL; *userpass_end = NULL, *user_end = NULL;
enum { enum {
@@ -574,7 +574,7 @@ int git_net_url_parse_http(
const char *given) const char *given)
{ {
git_net_url_parser parser = GIT_NET_URL_PARSER_INIT; git_net_url_parser parser = GIT_NET_URL_PARSER_INIT;
const char *c, *authority = NULL, *path = NULL; const char *c = NULL, *authority = NULL, *path = NULL;
size_t authority_len = 0, path_len = 0; size_t authority_len = 0, path_len = 0;
int error; int error;