Skip to content
Permalink
Browse files
fixed remote snippets to check empty path first; fixing windows tests
  • Loading branch information
tomatolog committed Sep 2, 2019
1 parent 5cf6741 commit 62f64cb9e75ec28fc3c29f8414ce9656f5580254
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/sphinxexcerpt.cpp
@@ -3789,13 +3789,13 @@ void SnippetContext_t::BuildExcerpt ( ExcerptQuery_t & tOptions, const CSphIndex
sError.SetSprintf( "File '%s' escapes '%s' scope", sFilename.scstr(), g_sSnippetsFilePrefix.scstr());
return;
}
if ( !sFilename.IsEmpty () && tFile.Open ( sFilename.cstr(), SPH_O_READ, sError )<0 )
return;
else if ( tOptions.m_sSource.IsEmpty() )
if ( tOptions.m_sSource.IsEmpty() )
{
sError.SetSprintf ( "snippet file name is empty" );
return;
}
if ( !sFilename.IsEmpty () && tFile.Open ( sFilename.cstr(), SPH_O_READ, sError )<0 )
return;

// will this ever trigger? time will tell; email me if it does!
if ( tFile.GetSize()+1>=(SphOffset_t)INT_MAX )

0 comments on commit 62f64cb

Please sign in to comment.