Fix Cppcheck warning about uninitialized variable
This commit is contained in:
parent
bc40f5041d
commit
189e0b3890
|
@ -1496,6 +1496,8 @@ void CheckBufferOverrun::bufferOverrun()
|
||||||
} else if (tok->astOperand2()->valueType()->pointer == 0) {
|
} else if (tok->astOperand2()->valueType()->pointer == 0) {
|
||||||
indexToken = tok->astOperand2();
|
indexToken = tok->astOperand2();
|
||||||
pointerToken = tok->astOperand1();
|
pointerToken = tok->astOperand1();
|
||||||
|
} else {
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (pointerToken && pointerToken->str() == ".")
|
while (pointerToken && pointerToken->str() == ".")
|
||||||
|
|
Loading…
Reference in New Issue