Skip to content

Commit 3bd462a

Browse files
authored
Update remote.c
Initialise cfg variable.
1 parent c8823fb commit 3bd462a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ static void url_config_trim(git_net_url *url)
884884

885885
static int http_proxy_config(char **out, git_remote *remote, git_net_url *url)
886886
{
887-
git_config *cfg;
887+
git_config *cfg = NULL;
888888
git_buf buf = GIT_BUF_INIT;
889889
git_net_url lookup_url = GIT_NET_URL_INIT;
890890
int error;

0 commit comments

Comments
 (0)