Skip to content

Commit

Permalink
fix: slob truncated file check.
Browse files Browse the repository at this point in the history
fix #1541
  • Loading branch information
xiaoyifang committed Jun 14, 2024
1 parent 1e37d76 commit 5712f63
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/dict/slob.cc
Original file line number Diff line number Diff line change
Expand Up @@ -678,14 +678,7 @@ SlobDictionary::SlobDictionary( string const & id, string const & indexFile, vec
idxHeader( idx.read< IdxHeader >() )
{
// Open data file

try {
sf.open( dictionaryFiles[ 0 ].c_str() );
}
catch ( std::exception & e ) {
gdWarning( "Slob dictionary initializing failed: %s, error: %s\n", dictionaryFiles[ 0 ].c_str(), e.what() );
return;
}
sf.open( dictionaryFiles[ 0 ].c_str() );

// Initialize the indexes

Expand Down

0 comments on commit 5712f63

Please sign in to comment.