Skip to content

Commit 368df3b

Browse files
fixup! fixup! Fix cppcheck-opensource#958: warn when feof() is used as a while loop condition
1 parent 5ef23b1 commit 368df3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checkio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ void CheckIO::checkWrongfeofUsage()
493493
const Token* cond = getCondTok(tok);
494494
if (!cond)
495495
continue;
496-
if (Token::Match(cond, "! feof (")) {
496+
if (Token::simpleMatch(cond, "! feof (")) {
497497
wrongfeofUsage(cond);
498498
}
499499
}

0 commit comments

Comments
 (0)