From 395939d2f4bb342ddf255744ca657517aaa2926c Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 5 Mar 2017 16:49:30 +0100 Subject: [PATCH] inp2m.c, #8/15b, unify, add two invocations without any effect --- src/spicelib/parser/inp2m.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/spicelib/parser/inp2m.c b/src/spicelib/parser/inp2m.c index daf374298..2d5e1fe7b 100644 --- a/src/spicelib/parser/inp2m.c +++ b/src/spicelib/parser/inp2m.c @@ -172,6 +172,9 @@ INP2M(CKTcircuit *ckt, INPtables *tab, card *current) line = save; /* reset the posn to what it sould be */ /* nodeflag == 4 */ + if (!valid_numnodes(nodeflag, thismodel, current)) + return; + model = nname5; } } else { @@ -193,6 +196,9 @@ INP2M(CKTcircuit *ckt, INPtables *tab, card *current) } } else { /* nodeflag == 4 */ + if (!valid_numnodes(nodeflag, thismodel, current)) + return; + model = nname5; }