From fdfddde4961562ed5dbe8dc42787e9fd4f7df789 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Wed, 9 Sep 2015 15:29:06 +0300 Subject: [PATCH] Reuse cached value --- lib/tokenize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index d3f9a06a7..ba6e2c2ce 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -5886,7 +5886,7 @@ void Tokenizer::simplifyVariableMultipleAssign() } Token *stopAt = tok->tokAt(2); - const Token *valueTok = tok->tokAt(4); + const Token *valueTok = stopAt->tokAt(2); const std::string& value(valueTok->str()); tok2 = tok2->next();