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
parent b68bca464f
commit 39ec824e1f
1 changed files with 4 additions and 0 deletions

View File

@ -1995,6 +1995,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 */