mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-20 22:45:44 +08:00
avoid registing "" string to reduce memory consumption
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user