mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user