vlog95: Don't print a logic/UPD NULL name.

If the logic/UDP name is NULL then don't print anything.
This commit is contained in:
Cary R 2011-02-23 11:06:29 -08:00 committed by Stephen Williams
parent b95e46e621
commit c90a896448
1 changed files with 1 additions and 1 deletions

View File

@ -978,7 +978,7 @@ void emit_logic(ivl_scope_t scope, ivl_net_logic_t nlogic)
// this encoding and create an zero based range. Need to skip the
// local names _s<digits>.
name = ivl_logic_basename(nlogic);
if (name) {
if (name && *name) {
char *fixed_name = strdup(name);
unsigned lp = strlen(name) - 1;
if (fixed_name[lp] == '>') {