From 88eab8134e86b420a5a9889f3440c7772cc6a5a1 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 11 Jan 2020 00:11:31 +0000 Subject: [PATCH] Fix a couple of uninitialized variables (from Coverity scan). --- eeschema/tools/sch_edit_tool.cpp | 1 + pcbnew/router/pns_tool_base.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/eeschema/tools/sch_edit_tool.cpp b/eeschema/tools/sch_edit_tool.cpp index 70aebdfa26..91c081de35 100644 --- a/eeschema/tools/sch_edit_tool.cpp +++ b/eeschema/tools/sch_edit_tool.cpp @@ -119,6 +119,7 @@ private: SCH_EDIT_TOOL::SCH_EDIT_TOOL() : EE_TOOL_BASE( "eeschema.InteractiveEdit" ) { + m_pickerItem = nullptr; } diff --git a/pcbnew/router/pns_tool_base.cpp b/pcbnew/router/pns_tool_base.cpp index cc24aede10..0b3696bf51 100644 --- a/pcbnew/router/pns_tool_base.cpp +++ b/pcbnew/router/pns_tool_base.cpp @@ -73,6 +73,8 @@ TOOL_BASE::TOOL_BASE( const std::string& aToolName ) : m_endItem = nullptr; m_gridHelper = nullptr; + + m_cancelled = false; }