Resolve CID 1132030

This commit is contained in:
Dmitry-Me 2014-08-12 13:04:32 +04:00
parent 263582ddbd
commit b022afae75
1 changed files with 1 additions and 1 deletions

View File

@ -2906,7 +2906,7 @@ bool Preprocessor::validateCfg(const std::string &code, const std::string &cfg)
if (pos2 < code.size() && (std::isalnum((unsigned char)code[pos2]) || code[pos2] == '_'))
continue;
// macro is used in code, return false
if (_settings->isEnabled("information"))
if (_settings && _settings->isEnabled("information"))
validateCfgError(cfg, macro);
return false;
}