Fix uninitialized variable.
Fixes https://gitlab.com/kicad/code/kicad/issues/4948
This commit is contained in:
parent
ba537209ab
commit
5f3fd43b29
|
@ -631,7 +631,7 @@ int SCH_EDITOR_CONTROL::SimProbe( const TOOL_EVENT& aEvent )
|
|||
[this, simFrame] ( const VECTOR2D& aPosition )
|
||||
{
|
||||
EE_SELECTION_TOOL* selTool = m_toolMgr->GetTool<EE_SELECTION_TOOL>();
|
||||
EDA_ITEM* item;
|
||||
EDA_ITEM* item = nullptr;
|
||||
selTool->SelectPoint( aPosition, wiresAndPins, &item );
|
||||
|
||||
if( !item )
|
||||
|
|
Loading…
Reference in New Issue