diff --git a/src/spicelib/parser/inpgmod.c b/src/spicelib/parser/inpgmod.c index ffe385e22..3f4d29cc6 100644 --- a/src/spicelib/parser/inpgmod.c +++ b/src/spicelib/parser/inpgmod.c @@ -381,6 +381,9 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess default: lastType = cardType; // cardType is not used downwards from here + break; + } + if (lastType == E_MISSING) { /* new command card */ if (cardName) FREE(cardName); /* get rid of old card name */ @@ -452,8 +455,6 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess FREE(parm); } } - break; - } } *errMessage = err; return( 0 );