Skip to content

Commit

Permalink
easylogging++: test for NULL before dereference
Browse files Browse the repository at this point in the history
  • Loading branch information
moneromooo-monero committed Sep 27, 2018
1 parent 7ece155 commit 5fdcda5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions external/easylogging++/easylogging++.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5fdcda5

Please sign in to comment.