diff options
Diffstat (limited to 'src/base/io/io.c')
-rw-r--r-- | src/base/io/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/io/io.c b/src/base/io/io.c index 551feb0b..e1ff3b08 100644 --- a/src/base/io/io.c +++ b/src/base/io/io.c @@ -825,7 +825,7 @@ int IoCommandReadTruth( Abc_Frame_t * pAbc, int argc, char ** argv ) pSopCover = Abc_SopFromTruthHex(argv[globalUtilOptind]); else pSopCover = Abc_SopFromTruthBin(argv[globalUtilOptind]); - if ( pSopCover == NULL ) + if ( pSopCover == NULL || pSopCover[0] == 0 ) { fprintf( pAbc->Err, "Reading truth table has failed.\n" ); return 1; |