diff --git a/src/spicelib/parser/inppas3.c b/src/spicelib/parser/inppas3.c index d1eaf6b13..f1d97b7b8 100644 --- a/src/spicelib/parser/inppas3.c +++ b/src/spicelib/parser/inppas3.c @@ -148,6 +148,8 @@ INPpas3(CKTcircuit *ckt, struct card *data, INPtables *tab, TSKtask *task, FREE(name); /* Gobble the rest of the token */ line = nexttok(line); + if (!line) + break; continue; } ptemp.rValue = INPevaluate(&line,&error,1);