mirror of https://github.com/YosysHQ/abc.git
fix segv when obj is a primary input
This commit is contained in:
parent
a5a6254db1
commit
bbdfe37bf9
|
|
@ -197,7 +197,7 @@ void Abc_SclTimeNtkPrint( SC_Man * p, int fShowAll, int fPrintPath )
|
|||
while ( pObj && Abc_ObjIsNode(pObj) )
|
||||
{
|
||||
i++;
|
||||
nLength = Abc_MaxInt( nLength, strlen(Abc_SclObjCell(pObj)->pName) );
|
||||
nLength = Abc_MaxInt( nLength, strlen((Abc_SclObjCell(pObj) ? Abc_SclObjCell(pObj)->pName : "pi")) );
|
||||
pObj = Abc_SclFindMostCriticalFanin( p, &fRise, pObj );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue