Reduce variable scope.

This commit is contained in:
XhmikosR 2013-11-01 13:36:12 +02:00
parent fb04c8ff84
commit 38471babf9
1 changed files with 1 additions and 2 deletions

View File

@ -1356,7 +1356,6 @@ static int doAssignment(Variables &variables, const Token *tok, bool dereference
Variables::VariableUsage *var1 = variables.find(varid1);
if (var1) {
Variables::VariableUsage *var2 = 0;
int start = 1;
// search for '='
@ -1437,7 +1436,7 @@ static int doAssignment(Variables &variables, const Token *tok, bool dereference
// check if variable is local
varid2 = tok->tokAt(next)->varId();
var2 = variables.find(varid2);
Variables::VariableUsage *var2 = variables.find(varid2);
if (var2) { // local variable (alias or read it)
if (var1->_type == Variables::pointer) {