remove checking for thismodel->INPmodType
This commit is contained in:
parent
2b66531eb4
commit
da574eb2bf
|
|
@ -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
|
2011-05-08 Robert Larice
|
||||||
* src/frontend/shyu.c ,
|
* src/frontend/shyu.c ,
|
||||||
* src/frontend/spiceif.c ,
|
* src/frontend/spiceif.c ,
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,9 @@ void INP2Z(CKTcircuit *ckt, INPtables * tab, card * current)
|
||||||
IFC(bindNode, (ckt, fast, 2, node2));
|
IFC(bindNode, (ckt, fast, 2, node2));
|
||||||
IFC(bindNode, (ckt, fast, 3, node3));
|
IFC(bindNode, (ckt, fast, 3, node3));
|
||||||
PARSECALL((&line, ckt, type, fast, &leadval, &waslead, tab));
|
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;
|
ptemp.rValue = leadval;
|
||||||
GCA(INPpName, ("area", &ptemp, ckt, type, fast));
|
GCA(INPpName, ("area", &ptemp, ckt, type, fast));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue