From 77f651639de56d7ec76db7fa2e5084acb8d50cee Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 29 Dec 2020 13:13:58 +0100 Subject: [PATCH] Eeschema: fix crash using tune/probe function in spice simulator. Fixes #6875 https://gitlab.com/kicad/code/kicad/issues/6875 --- eeschema/tools/sch_editor_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/tools/sch_editor_control.cpp b/eeschema/tools/sch_editor_control.cpp index 465cf097b5..079c9f229a 100644 --- a/eeschema/tools/sch_editor_control.cpp +++ b/eeschema/tools/sch_editor_control.cpp @@ -741,7 +741,7 @@ int SCH_EDITOR_CONTROL::SimTune( const TOOL_EVENT& aEvent ) [this]( const VECTOR2D& aPosition ) { EE_SELECTION_TOOL* selTool = m_toolMgr->GetTool(); - EDA_ITEM* item; + EDA_ITEM* item = nullptr; selTool->SelectPoint( aPosition, fieldsAndComponents, &item ); if( !item )