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:
Tim Edwards 2019-10-31 15:19:30 -04:00
parent fc86f44bb1
commit ecfdb66417
1 changed files with 1 additions and 0 deletions

View File

@ -1485,6 +1485,7 @@ subcktVisit(use, hierName, is_top)
char *pname;
portidx = nodeName->efnn_port;
if (portidx < 0) continue;
if (nodeList[portidx] == NULL)
{
nodeList[portidx] = nodeName;