shared ngspice may transmit netlists with empty lines,

guard against crashing
This commit is contained in:
Holger Vogt 2020-05-05 12:00:19 +02:00
parent db91e19e36
commit bbe81ca8f8
1 changed files with 4 additions and 0 deletions

View File

@ -7691,6 +7691,10 @@ static struct card *pspice_compat(struct card *oldcard)
if (*cut_line == '*')
continue;
if (*cut_line == '\0')
continue;
/* exclude any command inside .control ... .endc */
if (ciprefix(".control", cut_line)) {
skip_control++;