Function ngSpice_Circ() may send empty lines to shared ngspice.

Skip these lines while processing the netlist array.
This commit is contained in:
Holger Vogt 2022-10-26 16:23:00 +02:00
parent 8bcea45f1c
commit 39316ea3c6
1 changed files with 5 additions and 1 deletions

View File

@ -1878,8 +1878,12 @@ void create_circbyline(char *line, bool reset, bool lastline)
circarray = TREALLOC(char *, circarray, n_elem_alloc);
}
/* Remove any leading whitespace by shifting */
char *p_src = skip_ws(line);
/* return if line is empty */
if (*p_src == '\0')
return;
/* Remove any leading whitespace by shifting */
if (p_src != line) {
char *p_dst = line;
char ch_cur;