Skip to content

Commit b88ba73

Browse files
author
Aaron Danen
committed
sanitizer
1 parent 4dbe469 commit b88ba73

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/checkleakautovar.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ static const Token * isFunctionCall(const Token * nameToken)
276276
* or
277277
* get_function()(arg)
278278
*
279-
* @param token on the LHS of a function call
279+
* @param tok on the LHS of a function call
280280
* @return opening parenthesis token or nullptr if not a function call
281281
*/
282282
static const Token * isAnonymousFunctionCall(const Token * tok)
@@ -831,9 +831,9 @@ bool CheckLeakAutoVarImpl::checkScope(const Token * const startToken,
831831
continue;
832832

833833
// top level call to an anonymous function
834-
} else if (const Token *openingPar = isAnonymousFunctionCall(tok)) {
835-
functionCall(nullptr, openingPar, varInfo, VarInfo::AllocInfo(0, VarInfo::NOALLOC), nullptr);
836-
tok = openingPar->link();
834+
} else if (const Token *lpar = isAnonymousFunctionCall(tok)) {
835+
functionCall(nullptr, lpar, varInfo, VarInfo::AllocInfo(0, VarInfo::NOALLOC), nullptr);
836+
tok = lpar->link();
837837

838838
// goto => weird execution path
839839
} else if (tok->str() == "goto") {

0 commit comments

Comments
 (0)