|
|
@@ -18054,15 +18054,16 @@ bool CSphDictCRCTraits::LoadWordforms ( const CSphVector<CSphString> & dFiles, c
|
|
|
m_dWFFileInfos[i] = pEmbedded->m_dWordformFiles[i];
|
|
|
} else
|
|
|
{
|
|
|
- m_dWFFileInfos.Reserve ( m_dWFFileInfos.GetLength() );
|
|
|
+ m_dWFFileInfos.Reserve ( dFiles.GetLength() );
|
|
|
CSphSavedFile tFile;
|
|
|
ARRAY_FOREACH ( i, dFiles )
|
|
|
- {
|
|
|
- if ( GetFileStats ( dFiles[i].cstr(), tFile ) )
|
|
|
- m_dWFFileInfos.Add ( tFile );
|
|
|
- else
|
|
|
- sphWarning ( "index '%s': wordforms file '%s' not found", sIndex, dFiles[i].cstr() );
|
|
|
- }
|
|
|
+ if ( !dFiles[i].IsEmpty() )
|
|
|
+ {
|
|
|
+ if ( GetFileStats ( dFiles[i].cstr(), tFile ) )
|
|
|
+ m_dWFFileInfos.Add ( tFile );
|
|
|
+ else
|
|
|
+ sphWarning ( "index '%s': wordforms file '%s' not found", sIndex, dFiles[i].cstr() );
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if ( !m_dWFFileInfos.GetLength() )
|