mirror of
https://github.com/monero-project/monero.git
synced 2025-12-13 08:52:33 +01:00
easylogging++: test for NULL before dereference
This commit is contained in:
4
external/easylogging++/easylogging++.cc
vendored
4
external/easylogging++/easylogging++.cc
vendored
@@ -1975,11 +1975,11 @@ void VRegistry::setCategories(const char* categories, bool clear) {
|
|||||||
m_cached_allowed_categories.clear();
|
m_cached_allowed_categories.clear();
|
||||||
m_categoriesString.clear();
|
m_categoriesString.clear();
|
||||||
}
|
}
|
||||||
|
if (!categories)
|
||||||
|
return;
|
||||||
if (!m_categoriesString.empty())
|
if (!m_categoriesString.empty())
|
||||||
m_categoriesString += ",";
|
m_categoriesString += ",";
|
||||||
m_categoriesString += categories;
|
m_categoriesString += categories;
|
||||||
if (!categories)
|
|
||||||
return;
|
|
||||||
|
|
||||||
bool isCat = true;
|
bool isCat = true;
|
||||||
bool isLevel = false;
|
bool isLevel = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user