Browse Source

shared ngspice may transmit netlists with empty lines,

guard against crashing
pre-master-46
Holger Vogt 6 years ago
parent
commit
bbe81ca8f8
  1. 4
      src/frontend/inpcom.c

4
src/frontend/inpcom.c

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

Loading…
Cancel
Save