Merge pull request #563 from Dmitry-Me/deconvoluteCheck

Make the check slightly less convoluted
This commit is contained in:
amai2012 2015-03-21 12:27:37 +01:00
commit bb9848d24a
1 changed files with 2 additions and 3 deletions

View File

@ -1563,10 +1563,9 @@ bool CheckUninitVar::checkIfForWhileHead(const Token *startparentheses, const Va
}
if (isVariableUsage(tok, var.isPointer(), alloc)) {
if (!suppressErrors)
uninitvarError(tok, tok->str());
else
if (suppressErrors)
continue;
uninitvarError(tok, tok->str());
}
return true;
}