easylogging++: test for NULL before dereference

This commit is contained in:
moneromooo-monero 2018-09-27 13:25:28 +00:00
parent 7ece1550e1
commit 5fdcda50ee
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -1975,11 +1975,11 @@ void VRegistry::setCategories(const char* categories, bool clear) {
m_cached_allowed_categories.clear();
m_categoriesString.clear();
}
if (!categories)
return;
if (!m_categoriesString.empty())
m_categoriesString += ",";
m_categoriesString += categories;
if (!categories)
return;
bool isCat = true;
bool isLevel = false;