diff options
author | Laurence McGlashan <mail@laurencemcglashan.com> | 2021-09-18 21:08:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-18 21:08:20 +0100 |
commit | 3bd462a113a9bbf4fb6e61c56c3a32ac3636b664 (patch) | |
tree | fa6c27060466714d66cd8ebbaa1336e55120efb6 | |
parent | c8823fb05097cf38fa7f5cce0929e63c186f7a21 (diff) | |
download | libgit2-3bd462a113a9bbf4fb6e61c56c3a32ac3636b664.tar.gz |
Update remote.c
Initialise cfg variable.
-rw-r--r-- | src/remote.c | 2 |
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; |