aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-27 13:25:28 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-27 17:28:42 +0000
commit5fdcda50eeed473dc330b6dde332635998dcb097 (patch)
tree7233fff0ca6169bec0877fe327faae94c8785b73
parentperformance_test: fix bad last argument calling add_arg (diff)
downloadmonero-5fdcda50eeed473dc330b6dde332635998dcb097.tar.xz
easylogging++: test for NULL before dereference
-rw-r--r--external/easylogging++/easylogging++.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/external/easylogging++/easylogging++.cc b/external/easylogging++/easylogging++.cc
index b438fa543..a4bdad4cf 100644
--- a/external/easylogging++/easylogging++.cc
+++ b/external/easylogging++/easylogging++.cc
@@ -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;