avoid registing "" string to reduce memory consumption

This commit is contained in:
SASANO Takayoshi 2020-03-06 21:56:00 +09:00
parent 92d9973ace
commit a2911fa5c3

View file

@ -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;
}