From d84a5e6f038dfdfc73c9ff7bbfa420e6f318ee86 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Tue, 27 Feb 2024 00:25:04 +0300 Subject: [PATCH] Initialize git_repository_init_options 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 dfcdd5e1da..367117c5da 100644 --- a/common/dialogs/git/dialog_git_repository.cpp +++ b/common/dialogs/git/dialog_git_repository.cpp @@ -56,8 +56,7 @@ DIALOG_GIT_REPOSITORY::DIALOG_GIT_REPOSITORY( wxWindow* aParent, git_repository* m_tempRepo = true; m_tempPath = wxFileName::CreateTempFileName( "kicadtestrepo" ); - git_repository_init_options options; - options.version = GIT_REPOSITORY_INIT_OPTIONS_VERSION; + git_repository_init_options options = GIT_REPOSITORY_INIT_OPTIONS_INIT; options.flags = GIT_REPOSITORY_INIT_MKPATH | GIT_REPOSITORY_INIT_NO_REINIT; git_repository_init_ext( &m_repository, m_tempPath.ToStdString().c_str(), &options ); }