Fix Cppcheck warning
This commit is contained in:
parent
a331206b44
commit
12b7c9e597
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue