shared ngspice may transmit netlists with empty lines,
guard against crashing
This commit is contained in:
parent
db91e19e36
commit
bbe81ca8f8
|
|
@ -7691,6 +7691,10 @@ static struct card *pspice_compat(struct card *oldcard)
|
||||||
|
|
||||||
if (*cut_line == '*')
|
if (*cut_line == '*')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (*cut_line == '\0')
|
||||||
|
continue;
|
||||||
|
|
||||||
/* exclude any command inside .control ... .endc */
|
/* exclude any command inside .control ... .endc */
|
||||||
if (ciprefix(".control", cut_line)) {
|
if (ciprefix(".control", cut_line)) {
|
||||||
skip_control++;
|
skip_control++;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue