Corrected potential crash condition that can happen if there is one
or more repeated "equiv" lines in a .ext file. This implies two ports with different names are connected, indicating probably a bad layout, but that's not a reason to have magic crash.
This commit is contained in:
parent
9382cc622c
commit
df9a52de6c
|
|
@ -457,10 +457,14 @@ efBuildEquiv(def, nodeName1, nodeName2)
|
|||
EFStrToHN((HierName *) NULL, nodeName2));
|
||||
return;
|
||||
}
|
||||
else if (nn2->efnn_node == (EFNode *)NULL)
|
||||
return; /* Repeated "equiv" statement */
|
||||
|
||||
/* If both names exist and are for different nodes, merge them */
|
||||
if (nn1)
|
||||
{
|
||||
if (nn1->efnn_node == (EFNode *)NULL)
|
||||
return; /* Repeated "equiv" statement */
|
||||
if (nn1->efnn_node != nn2->efnn_node)
|
||||
{
|
||||
if (efWarn)
|
||||
|
|
|
|||
Loading…
Reference in New Issue