remove checking for thismodel->INPmodType

This commit is contained in:
h_vogt 2011-05-15 09:42:49 +00:00
parent 2b66531eb4
commit da574eb2bf
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-05-15 Holger Vogt
* inp2z.c: remove checking for thismodel->INPmodType
because this might lead to segfault if the user supplies
a wrong ZXXXXX input
2011-05-08 Robert Larice
* src/frontend/shyu.c ,
* src/frontend/spiceif.c ,

View File

@ -90,7 +90,9 @@ void INP2Z(CKTcircuit *ckt, INPtables * tab, card * current)
IFC(bindNode, (ckt, fast, 2, node2));
IFC(bindNode, (ckt, fast, 3, node3));
PARSECALL((&line, ckt, type, fast, &leadval, &waslead, tab));
if ( (waslead) && ( thismodel->INPmodType != INPtypelook("MES") ) ) {
/* use type - not thismodel->INPmodType as it might not exist! */
/* FIXME: Why do we need checking for type here? */
if ( (waslead) && ( type /*thismodel->INPmodType*/ != INPtypelook("MES") ) ) {
ptemp.rValue = leadval;
GCA(INPpName, ("area", &ptemp, ckt, type, fast));
}