CheckOther::nullConstantDereference: Fixed cppcheck warning message - tok may become null
This commit is contained in:
parent
28ad69e4b3
commit
8ead23fc91
|
@ -2235,6 +2235,8 @@ void CheckOther::nullConstantDereference()
|
|||
tok = tok->link();
|
||||
tok = tok->next();
|
||||
}
|
||||
if (!tok)
|
||||
break;
|
||||
}
|
||||
|
||||
else if (Token::simpleMatch(tok, "* 0"))
|
||||
|
|
Loading…
Reference in New Issue