From 3bd462a113a9bbf4fb6e61c56c3a32ac3636b664 Mon Sep 17 00:00:00 2001 From: Laurence McGlashan Date: Sat, 18 Sep 2021 21:08:20 +0100 Subject: Update remote.c Initialise cfg variable. --- src/remote.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1