subckt.c, cleanup `doit()'

This commit is contained in:
rlar 2014-07-16 20:22:26 +02:00
parent 650352e3e8
commit d6106cfbfc
1 changed files with 3 additions and 3 deletions

View File

@ -491,13 +491,13 @@ doit(struct line *deck, wordlist *modnames) {
/* cut the whole .subckt ... .ends sequence from the deck chain */ /* cut the whole .subckt ... .ends sequence from the deck chain */
line_free_x(c, FALSE); line_free_x(c, FALSE); /* drop the .subckt card */
c = ends->li_next; c = ends->li_next;
if (prev_of_c) if (prev_of_c)
prev_of_c->li_next = ends->li_next; prev_of_c->li_next = c;
else else
deck = ends->li_next; deck = c;
if (use_numparams == FALSE) { if (use_numparams == FALSE) {
line_free_x(ends, FALSE); /* drop the .ends card */ line_free_x(ends, FALSE); /* drop the .ends card */