Corrected one error in the recent fix for port enumeration in
ext2spice (hierarchy on), where the port index was not checked for value -1 (no port) before indexing into the port list.
This commit is contained in:
parent
fc86f44bb1
commit
ecfdb66417
|
|
@ -1485,6 +1485,7 @@ subcktVisit(use, hierName, is_top)
|
||||||
char *pname;
|
char *pname;
|
||||||
|
|
||||||
portidx = nodeName->efnn_port;
|
portidx = nodeName->efnn_port;
|
||||||
|
if (portidx < 0) continue;
|
||||||
if (nodeList[portidx] == NULL)
|
if (nodeList[portidx] == NULL)
|
||||||
{
|
{
|
||||||
nodeList[portidx] = nodeName;
|
nodeList[portidx] = nodeName;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue