Do not add empty matches to matches_all.
This commit is contained in:
parent
21989aabfe
commit
6a4511099f
|
@ -150,9 +150,12 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
auto matches{
|
||||
search::search(filepath, regex, search_settings)};
|
||||
if (!matches.empty())
|
||||
{
|
||||
std::lock_guard<std::mutex> guard(mutex_matches_all);
|
||||
matches_all.emplace_back(matches);
|
||||
}
|
||||
}
|
||||
catch (const zip::exception &e)
|
||||
{
|
||||
if (opts.ignore_archive_errors && e.code == 1)
|
||||
|
|
Loading…
Reference in New Issue
Block a user