diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2014-08-13 16:46:20 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2014-08-13 16:46:20 -0700 |
commit | c8bfe83e55cf008554161ab69a7545775e14c10d (patch) | |
tree | ff773a0406dda6683433529736e894b9b727916f /src/map/scl | |
parent | f907347484874a4c5ff9ffdde9426e0229fac22d (diff) | |
download | abc-c8bfe83e55cf008554161ab69a7545775e14c10d.tar.gz abc-c8bfe83e55cf008554161ab69a7545775e14c10d.tar.bz2 abc-c8bfe83e55cf008554161ab69a7545775e14c10d.zip |
Suggested fix to allow .constr files to have empty lines.
Diffstat (limited to 'src/map/scl')
-rw-r--r-- | src/map/scl/sclUtil.c | 2 |
1 files changed, 2 insertions, 0 deletions
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")) ); |