fix segv when obj is a primary input

This commit is contained in:
Rajit Manohar 2023-06-24 12:17:57 -04:00
parent a5a6254db1
commit bbdfe37bf9
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}