avoid registing "" string to reduce memory consumption
This commit is contained in:
parent
92d9973ace
commit
a2911fa5c3
|
@ -40,7 +40,7 @@ bool CUserDBentry::isValidKey(const std::string key)
|
|||
|
||||
void CUserDBentry::set(const std::string key, const std::string value)
|
||||
{
|
||||
if (isValidKey(key))
|
||||
if (!value.empty() && isValidKey(key))
|
||||
m_db[key] = value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue