mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-13 11:32:48 -04:00
fixed bug causing suffix/prefix lists to contain an empty string
This commit is contained in:
parent
bc05aaa9d9
commit
22942dc70b
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue