From 35192f5bd476a770238b62971741337a98f61ff7 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Tue, 27 Feb 2024 00:35:52 +0300 Subject: [PATCH] Initialize git_remote_callbacks structure. --- common/dialogs/git/dialog_git_repository.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/dialogs/git/dialog_git_repository.cpp b/common/dialogs/git/dialog_git_repository.cpp index 367117c5da..4e71fef273 100644 --- a/common/dialogs/git/dialog_git_repository.cpp +++ b/common/dialogs/git/dialog_git_repository.cpp @@ -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