doit, return allows shortcuting else if

This commit is contained in:
rlar 2012-03-11 10:51:42 +01:00
parent a69ddd9ad0
commit 90dc1da4d2
1 changed files with 3 additions and 1 deletions

View File

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