From 34b14bac7909aa2c647d0997a76e1aa3ea57b1e3 Mon Sep 17 00:00:00 2001 From: Nathan Baird Date: Wed, 29 Oct 2025 09:43:38 -0700 Subject: [PATCH] a few more variables set to NULL --- .vscode/settings.json | 3 +++ src/util/net.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..5dabb895a --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "sarif-viewer.connectToGithubCodeScanning": "off" +} \ No newline at end of file diff --git a/src/util/net.c b/src/util/net.c index 304eb054d..b55921b4b 100644 --- a/src/util/net.c +++ b/src/util/net.c @@ -184,7 +184,7 @@ static int url_parse_authority( const char *authority, 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; enum { @@ -574,7 +574,7 @@ int git_net_url_parse_http( const char *given) { 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; int error;