Fix to new ext2spice code to prevent a crash condition when
multiple instances of a port name are present.
This commit is contained in:
parent
c4221889ed
commit
ff08df0eed
|
|
@ -1821,7 +1821,8 @@ topVisit(def, doStub)
|
|||
{
|
||||
hep = HashFind(&portNameTable, pname);
|
||||
HashSetValue(hep, (ClientData)(pointertype)nodeName->efnn_port);
|
||||
sorted_ports[portidx] = StrDup((char **)NULL, pname);
|
||||
if (sorted_ports[portidx] == NULL)
|
||||
sorted_ports[portidx] = StrDup((char **)NULL, pname);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue