diff --git a/src/plugins/git/gerrit/gerritplugin.cpp b/src/plugins/git/gerrit/gerritplugin.cpp index ebf8fb86f54..ee1ba7bf4c3 100644 --- a/src/plugins/git/gerrit/gerritplugin.cpp +++ b/src/plugins/git/gerrit/gerritplugin.cpp @@ -266,6 +266,7 @@ void FetchContext::checkout() GerritPlugin::GerritPlugin(QObject *parent) : QObject(parent) , m_parameters(new GerritParameters) + , m_gerritCommand(0), m_pushToGerritCommand(0) { } diff --git a/src/plugins/git/mergetool.cpp b/src/plugins/git/mergetool.cpp index 7521a2c1ef3..2883f79fd60 100644 --- a/src/plugins/git/mergetool.cpp +++ b/src/plugins/git/mergetool.cpp @@ -75,7 +75,11 @@ private: MergeTool::MergeTool(QObject *parent) : QObject(parent), m_process(0), - m_gitClient(GitPlugin::instance()->gitClient()) + m_mergeType(NormalMerge), + m_localState(UnknownState), + m_remoteState(UnknownState), + m_gitClient(GitPlugin::instance()->gitClient()), + m_merging(false) { }