From 90dc1da4d2ffe52add2e268472ae8028a747b214 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 11 Mar 2012 10:51:42 +0100 Subject: [PATCH] doit, return allows shortcuting else if --- src/frontend/subckt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontend/subckt.c b/src/frontend/subckt.c index 102a2004f..90be41da8 100644 --- a/src/frontend/subckt.c +++ b/src/frontend/subckt.c @@ -432,7 +432,9 @@ doit(struct line *deck) { fprintf(cp_err, "Error: misplaced %s line: %s\n", sbend, last->li_line); return (NULL); - } else if (ciprefix(start, last->li_line)) { /* if line == .subckt */ + } + + if (ciprefix(start, last->li_line)) { /* if line == .subckt */ if (last->li_next == NULL) { /* first check that next line is non null */ fprintf(cp_err, "Error: no %s line.\n", sbend); return (NULL);