Corrected a rare case where a NULL value propagates in the flattening
routine and is not caught until it causes a segfault.
This commit is contained in:
parent
bf4112db07
commit
2b88d79adc
|
|
@ -600,8 +600,10 @@ int flattenInstancesOf(char *name, int fnum, char *instance)
|
||||||
else break;
|
else break;
|
||||||
|
|
||||||
/* Put the child cell at the start of ChildObjList */
|
/* Put the child cell at the start of ChildObjList */
|
||||||
ChildEnd->next = ChildObjList;
|
if (ChildEnd) {
|
||||||
ChildObjList = ChildStart;
|
ChildEnd->next = ChildObjList;
|
||||||
|
ChildObjList = ChildStart;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Put the child cell at the start of ChildObjList */
|
/* Put the child cell at the start of ChildObjList */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue