Skip to content

Commit 8226b31

Browse files
Update checkio.cpp
1 parent 18492b0 commit 8226b31

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/checkio.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,6 @@ void CheckIO::checkFormatString(const Token * const tok,
674674
++i;
675675
}
676676
if (scanf_s && !skip) {
677-
numSecure++;
678677
if (argListTok) {
679678
argListTok = argListTok->nextArgument();
680679
}
@@ -722,7 +721,7 @@ void CheckIO::checkFormatString(const Token * const tok,
722721
if (!(argInfo.isArrayOrPointer() && argInfo.element && !argInfo.typeToken->isStandardType()))
723722
invalidScanfArgTypeError_s(tok, numFormat, specifier, &argInfo);
724723
}
725-
if (scanf_s && argInfo.typeToken) {
724+
if (scanf_s) {
726725
numSecure++;
727726
if (argListTok) {
728727
argListTok = argListTok->nextArgument();

0 commit comments

Comments
 (0)