subckt.c: prevent crash if 5/6 MOS nodes w/o L, W

This commit is contained in:
h_vogt 2013-05-30 23:48:24 +02:00 committed by rlar
parent 5cbdca2cc6
commit 7857a300ad
1 changed files with 4 additions and 0 deletions

View File

@ -1996,6 +1996,10 @@ devmodtranslate(struct line *deck, char *subname, wordlist * const submod)
(void) sprintf(buffer + strlen(buffer), "%s ", name);
tfree(name);
name = gettok(&t);
if (name == NULL) {
name = copy(""); /* allow 'tfree' */
break;
}
}
} /* while */