Fix Cppcheck warning about uninitialized variable

This commit is contained in:
Daniel Marjamäki 2018-01-27 22:05:29 +01:00
parent bc40f5041d
commit 189e0b3890
1 changed files with 2 additions and 0 deletions

View File

@ -1496,6 +1496,8 @@ void CheckBufferOverrun::bufferOverrun()
} else if (tok->astOperand2()->valueType()->pointer == 0) {
indexToken = tok->astOperand2();
pointerToken = tok->astOperand1();
} else {
continue;
}
while (pointerToken && pointerToken->str() == ".")