Commit 3bd462a113a9bbf4fb6e61c56c3a32ac3636b664

Laurence McGlashan 2021-09-18T21:08:20

Update remote.c Initialise cfg variable.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/remote.c b/src/remote.c
index 2ff1f7d..56d7e42 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;