From c8bfe83e55cf008554161ab69a7545775e14c10d Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Wed, 13 Aug 2014 16:46:20 -0700 Subject: Suggested fix to allow .constr files to have empty lines. --- src/map/scl/sclUtil.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/map/scl/sclUtil.c b/src/map/scl/sclUtil.c index 2c71b739..b6bfebe4 100644 --- a/src/map/scl/sclUtil.c +++ b/src/map/scl/sclUtil.c @@ -218,6 +218,8 @@ void Abc_SclReadTimingConstr( Abc_Frame_t * pAbc, char * pFileName, int fVerbose while ( fgets( Buffer, 1000, pFile ) ) { pToken = strtok( Buffer, " \t\r\n" ); + if ( pToken == NULL ) + continue; if ( !strcmp(pToken, "set_driving_cell") ) { Abc_FrameSetDrivingCell( Abc_UtilStrsav(strtok(NULL, " \t\r\n")) ); -- cgit v1.2.3