Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Jan 2, 2025
1 parent d168d6d commit e8b38cf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/checkother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3194,9 +3194,7 @@ void CheckOther::checkIncompleteArrayFill()
if (!var || !var->isArray() || var->dimensions().empty() || !var->dimension(0))
continue;

if (!args[2]->hasKnownIntValue())
continue;
if (args[2]->getKnownIntValue() != var->dimension(0))
if (!args[2]->hasKnownIntValue() || args[2]->getKnownIntValue() != var->dimension(0))
continue;
int size = mTokenizer->sizeOfType(var->typeStartToken());
if (size == 0 && var->valueType()->pointer)
Expand Down

0 comments on commit e8b38cf

Please sign in to comment.