fixed bug causing suffix/prefix lists to contain an empty string

This commit is contained in:
csoler 2017-10-01 20:20:26 +02:00
parent bc05aaa9d9
commit 22942dc70b
2 changed files with 5 additions and 3 deletions

View file

@ -478,7 +478,9 @@ bool p3FileDatabase::loadList(std::list<RsItem *>& load)
for(uint32_t i=0;i<kit->value.size();++i)
if(kit->value[i] == ';')
{
ignored_prefixes.push_back(b) ;
if(!b.empty()) // security!
ignored_prefixes.push_back(b) ;
b.clear();
}
else