diff --git a/src/frontend/inpcompat.c b/src/frontend/inpcompat.c index d1c22f5a2..e970b517c 100644 --- a/src/frontend/inpcompat.c +++ b/src/frontend/inpcompat.c @@ -65,7 +65,9 @@ void set_compat_mode(void) newcompat.ps = FALSE; newcompat.xs = FALSE; newcompat.lt = FALSE; - newcompat.ki = FALSE; +#ifndef SHARED_MODULE + newcompat.ki = FALSE; /* has already been set in sharedspice.c */ +#endif newcompat.a = FALSE; newcompat.spe = FALSE; newcompat.isset = FALSE; diff --git a/src/sharedspice.c b/src/sharedspice.c index 2b51832a8..7fef62bc4 100644 --- a/src/sharedspice.c +++ b/src/sharedspice.c @@ -1061,6 +1061,8 @@ ngSpice_Init(SendChar* printfcn, SendStat* statusfcn, ControlledExit* ngspiceexi if (thisproc) { if( ciprefix("eeschema", thisproc)) newcompat.ki = TRUE; + else + newcompat.ki = FALSE; tfree(thisproc); }