From 384ff2539a4224a3f041190f193a2b92718bc086 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 15 Jan 2020 20:14:58 +0000 Subject: [PATCH] Fix uninitialized variables. --- eeschema/sim/ngspice.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/eeschema/sim/ngspice.cpp b/eeschema/sim/ngspice.cpp index cf6e18f283..4ca04790e7 100644 --- a/eeschema/sim/ngspice.cpp +++ b/eeschema/sim/ngspice.cpp @@ -27,13 +27,9 @@ #include "ngspice.h" #include "spice_reporter.h" - -#include #include // LOCALE_IO #include #include - -#include #include using namespace std; @@ -41,7 +37,14 @@ using namespace std; static const wxChar* const traceNgspice = wxT( "KICAD_NGSPICE" ); NGSPICE::NGSPICE() : - m_error( false ) + m_ngSpice_Init( nullptr ), + m_ngSpice_Circ( nullptr ), + m_ngSpice_Command( nullptr ), + m_ngGet_Vec_Info( nullptr ), + m_ngSpice_AllPlots( nullptr ), + m_ngSpice_AllVecs( nullptr ), + m_ngSpice_Running( nullptr ), + m_error( false ) { init_dll(); }