Initialize git_remote_callbacks structure.

This commit is contained in:
Alex Shvartzkop 2024-02-27 00:35:52 +03:00
parent d84a5e6f03
commit 35192f5bd4
1 changed files with 1 additions and 2 deletions

View File

@ -260,8 +260,7 @@ void DIALOG_GIT_REPOSITORY::updateURLData()
void DIALOG_GIT_REPOSITORY::OnTestClick( wxCommandEvent& event )
{
git_remote* remote = nullptr;
git_remote_callbacks callbacks;
callbacks.version = GIT_REMOTE_CALLBACKS_VERSION;
git_remote_callbacks callbacks = GIT_REMOTE_CALLBACKS_INIT;
// We track if we have already tried to connect.
// If we have, the server may come back to offer another connection