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

This commit is contained in:
Holger Vogt 2023-04-12 13:40:05 +02:00
parent 02109587ee
commit 4231ad3f5f
1 changed files with 2 additions and 0 deletions

View File

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