check for NULL symbol "type" pointer
This commit is contained in:
parent
b88c4bab9e
commit
742f854964
|
|
@ -677,7 +677,8 @@ void prepare_netlist_structs(int for_netlist)
|
|||
!get_tok_value((xctx->inst[i].ptr+ xctx->sym)->templ, "name", 0)[0]
|
||||
) {
|
||||
char str[2048];
|
||||
if( strcmp(type, "package") &&
|
||||
if( type &&
|
||||
strcmp(type, "package") &&
|
||||
strcmp(type, "port_attributes") &&
|
||||
strcmp(type, "architecture") &&
|
||||
strcmp(type, "arch_declarations") &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue