summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurence McGlashan <mail@laurencemcglashan.com>2021-09-18 21:08:20 +0100
committerGitHub <noreply@github.com>2021-09-18 21:08:20 +0100
commit3bd462a113a9bbf4fb6e61c56c3a32ac3636b664 (patch)
treefa6c27060466714d66cd8ebbaa1336e55120efb6
parentc8823fb05097cf38fa7f5cce0929e63c186f7a21 (diff)
downloadlibgit2-3bd462a113a9bbf4fb6e61c56c3a32ac3636b664.tar.gz
Update remote.c
Initialise cfg variable.
-rw-r--r--src/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote.c b/src/remote.c
index 2ff1f7d13..56d7e42db 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -884,7 +884,7 @@ static void url_config_trim(git_net_url *url)
static int http_proxy_config(char **out, git_remote *remote, git_net_url *url)
{
- git_config *cfg;
+ git_config *cfg = NULL;
git_buf buf = GIT_BUF_INIT;
git_net_url lookup_url = GIT_NET_URL_INIT;
int error;