Fix Cppcheck warning

This commit is contained in:
Daniel Marjamäki 2018-09-01 08:41:41 +02:00
parent a331206b44
commit 12b7c9e597
1 changed files with 1 additions and 1 deletions

View File

@ -1298,7 +1298,7 @@ void CheckBufferOverrun::checkGlobalAndLocalVariable()
}
/** @todo false negatives: this may be too conservative */
if (!var || !var->isPointer() || var->typeStartToken()->next() != var->typeEndToken())
if (!var->isPointer() || var->typeStartToken()->next() != var->typeEndToken())
continue;
// malloc() gets count of bytes and not count of