Merge pull request #394 from Dmitry-Me/resolve1132030

Resolve CID 1132030
This commit is contained in:
Daniel Marjamäki 2014-08-14 13:28:59 +02:00
commit 543589564d
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;
}