eayslogging++: Fix bad memory access before opening any files

This commit is contained in:
moneromooo-monero 2017-03-25 19:36:33 +00:00
parent 14620ca0bd
commit db9dc7c2df
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -1603,6 +1603,7 @@ void TypedConfigurations::build(Configurations* configurations) {
base::utils::Str::trim(boolStr);
return (boolStr == "TRUE" || boolStr == "true" || boolStr == "1");
};
setValue(Level::Global, base::FileStreamPtr(NULL), &m_fileStreamMap);
std::vector<Configuration*> withFileSizeLimit;
for (Configurations::const_iterator it = configurations->begin(); it != configurations->end(); ++it) {
Configuration* conf = *it;