check for empty file name in internfile, else gets stuck later because empty fn is interpreted as read stdin in md5

This commit is contained in:
Jean-Francois Dockes 2012-10-05 16:42:13 +02:00
parent fb9d1a81bc
commit c456ea2175
4 changed files with 54 additions and 12 deletions

View file

@ -368,7 +368,7 @@ bool SearchData::toNativeQuery(Rcl::Db &db, void *d, int maxexp, int maxcl)
xq = xq.empty() ? tq : Xapian::Query(Xapian::Query::OP_AND_NOT, xq, tq);
}
// Add the directory filtering clause. This is a phrase of terms
// Add the directory filtering clauses. Each is a phrase of terms
// prefixed with the pathelt prefix XP
for (vector<DirSpec>::const_iterator dit = m_dirspecs.begin();
dit != m_dirspecs.end(); dit++) {