Preventing scripts from aborting if reading has failed.

This commit is contained in:
Alan Mishchenko 2011-11-08 17:58:51 -08:00
parent 55e9c4d0fa
commit 0b73c76380
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ int IoCommandRead( Abc_Frame_t * pAbc, int argc, char ** argv )
// read the file using the corresponding file reader
pNtk = Io_Read( pFileName, Io_ReadFileType(pFileName), fCheck );
if ( pNtk == NULL )
return 1;
return 0;
// replace the current network
Abc_FrameReplaceCurrentNetwork( pAbc, pNtk );
Abc_FrameCopyLTLDataBase( pAbc, pNtk );