Corrected a statement related to proxy pins that can cause a

segfault condition.
This commit is contained in:
Tim Edwards 2021-03-17 16:31:22 -04:00
parent 6b9d92de65
commit b1b04b8e87
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
1.5.171
1.5.172

View File

@ -6913,7 +6913,7 @@ struct nlist *addproxies(struct hashlist *p, void *clientdata)
/* But if the target cell instance has proxy(no pins), then reuse
* the record and modify it.
*/
if (!strcmp(ob->name, "proxy(no pins)")) {
if (ob && !strcmp(ob->name, "proxy(no pins)")) {
obn = ob;
FREE(ob->name);
obn->name = (char *)MALLOC(strlen(ob->instance.name)