Initialize git_remote_callbacks structure.

(cherry picked from commit 35192f5bd4)
This commit is contained in:
Alex Shvartzkop 2024-02-27 00:35:52 +03:00 committed by dsa-t
parent 755bfe3492
commit b3df08c7b1
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 ) void DIALOG_GIT_REPOSITORY::OnTestClick( wxCommandEvent& event )
{ {
git_remote* remote = nullptr; git_remote* remote = nullptr;
git_remote_callbacks callbacks; git_remote_callbacks callbacks = GIT_REMOTE_CALLBACKS_INIT;
callbacks.version = GIT_REMOTE_CALLBACKS_VERSION;
// We track if we have already tried to connect. // We track if we have already tried to connect.
// If we have, the server may come back to offer another connection // If we have, the server may come back to offer another connection