Resolve CID 1357639

This commit is contained in:
Dmitry-Me 2016-07-21 10:34:07 +03:00
parent 7383410d32
commit e3b0c3a974
1 changed files with 1 additions and 1 deletions

View File

@ -3507,7 +3507,7 @@ private:
for (tok = tokenizer.list.back(); tok; tok = tok->previous())
if (Token::simpleMatch(tok, pattern))
break;
return tok->valueType() ? tok->valueType()->str() : std::string();
return (tok && tok->valueType()) ? tok->valueType()->str() : std::string();
}
void valuetype() {