Browse Source

Prevent reading from NULL when user input is something like .ic=v

pre-master-46
Holger Vogt 3 years ago
parent
commit
4231ad3f5f
  1. 2
      src/spicelib/parser/inppas3.c

2
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);

Loading…
Cancel
Save