From 634d02bd040708ccc74827d2f76f92e686659997 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sat, 12 Jan 2019 06:49:45 -0800 Subject: [PATCH] libedit: Check proper field grid type Fixes segfault where pointers are not zeroed Fixes: lp:1811519 * https://bugs.launchpad.net/kicad/+bug/1811519 --- eeschema/dialogs/dialog_spice_model.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/dialogs/dialog_spice_model.cpp b/eeschema/dialogs/dialog_spice_model.cpp index 029a56e777..75c851654d 100644 --- a/eeschema/dialogs/dialog_spice_model.cpp +++ b/eeschema/dialogs/dialog_spice_model.cpp @@ -1,6 +1,7 @@ /* * This program source code file is part of KiCad, a free EDA CAD application. * + * Copyright (C) 2019 KiCad Developers, see CHANGELOG.TXT for contributors. * Copyright (C) 2016-2017 CERN * @author Maciej Suminski * @@ -264,7 +265,7 @@ bool DIALOG_SPICE_MODEL::TransferDataToWindow() NET_ADJUST_INCLUDE_PATHS | NET_ADJUST_PASSIVE_VALS ); // Do not modify the existing value, just add missing fields with default values - if( m_schfields ) + if( m_useSchFields && m_schfields ) { for( auto field : *m_schfields ) {