diff --git a/VERSION b/VERSION index b6bd287..c6531a7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.276 +1.5.277 diff --git a/base/flatten.c b/base/flatten.c index 78596e4..f9840b7 100644 --- a/base/flatten.c +++ b/base/flatten.c @@ -600,8 +600,10 @@ int flattenInstancesOf(char *name, int fnum, char *instance) else break; /* Put the child cell at the start of ChildObjList */ - ChildEnd->next = ChildObjList; - ChildObjList = ChildStart; + if (ChildEnd) { + ChildEnd->next = ChildObjList; + ChildObjList = ChildStart; + } } /* Put the child cell at the start of ChildObjList */