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