From 822c5150d5b1a01a6948a7d1662ce3901ccf0b50 Mon Sep 17 00:00:00 2001 From: rlar Date: Fri, 18 Jul 2014 18:00:01 +0200 Subject: [PATCH] subckt.c, doit(), cleanup, use `c' instead of `lcc' --- src/frontend/subckt.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/frontend/subckt.c b/src/frontend/subckt.c index 7dc58f974..0a3a2a212 100644 --- a/src/frontend/subckt.c +++ b/src/frontend/subckt.c @@ -630,14 +630,15 @@ doit(struct line *deck, wordlist *modnames) { c->li_next = lcc; c->li_line[0] = '*'; /* comment it out */ } - while (lcc->li_next) - lcc = lcc->li_next; - lcc->li_next = savenext; + c = lcc; + while (c->li_next) + c = c->li_next; + c->li_next = savenext; } tfree(tofree); tfree(tofree2); - prev_of_c = lcc; - c = lcc->li_next; + prev_of_c = c; + c = c->li_next; } /* if (ciprefix(invoke, c->li_line)) . . . */ else { prev_of_c = c;