From c90a8964485a4bbc7fe472fff93b1d16a1ce4644 Mon Sep 17 00:00:00 2001 From: Cary R Date: Wed, 23 Feb 2011 11:06:29 -0800 Subject: [PATCH] vlog95: Don't print a logic/UPD NULL name. If the logic/UDP name is NULL then don't print anything. --- tgt-vlog95/logic_lpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgt-vlog95/logic_lpm.c b/tgt-vlog95/logic_lpm.c index b3e66c3cb..1feffb16d 100644 --- a/tgt-vlog95/logic_lpm.c +++ b/tgt-vlog95/logic_lpm.c @@ -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. name = ivl_logic_basename(nlogic); - if (name) { + if (name && *name) { char *fixed_name = strdup(name); unsigned lp = strlen(name) - 1; if (fixed_name[lp] == '>') {