updated comment. removed a inconclusive condition, I don't think it's needed.

This commit is contained in:
Daniel Marjamäki 2011-10-29 12:52:46 +02:00
parent ad40586e96
commit f04210ad9f
1 changed files with 2 additions and 5 deletions

View File

@ -425,8 +425,8 @@ void CheckOther::checkSizeofForStrncmpSize()
const char pattern1[] = "strncmp ( %any% , %any% , sizeof ( %var% ) )";
const char pattern2[] = "strncmp ( %any% , %any% , sizeof %var% )";
// this check is inconclusive - it might be intentional to use
// sizeof(char *) as parameter
// danmar : this is inconclusive in case the size parameter is
// sizeof(char *) by intention.
if (!_settings->inconclusive)
return;
@ -2306,9 +2306,6 @@ void CheckOther::checkAlwaysTrueOrFalseStringCompare()
tok = tok->tokAt(7);
}
if (!_settings->inconclusive)
return;
tok = _tokenizer->tokens();
while (tok && (tok = Token::findmatch(tok, pattern3)) != NULL) {
const Token *var1 = tok->tokAt(2);