From a11891446c64a83dff6cd41f3ca3cf43e9becf76 Mon Sep 17 00:00:00 2001 From: codereader Date: Sun, 3 Apr 2022 16:48:26 +0200 Subject: [PATCH] Fix VC++ release build --- plugins/vcs/Repository.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/vcs/Repository.cpp b/plugins/vcs/Repository.cpp index 21d4a06e3b..91e3b9c18a 100644 --- a/plugins/vcs/Repository.cpp +++ b/plugins/vcs/Repository.cpp @@ -199,7 +199,7 @@ RefSyncStatus Repository::getSyncStatusOfBranch(const Reference& reference) if (!trackedBranch) throw GitException(_("The current branch doesn't track a remote, cannot check sync status")); - git_revwalk* walker; + git_revwalk* walker = nullptr; git_revwalk_new(&walker, _repository); // Start from remote