Possibly bug fix, changed %var% into %var1% as name was also given as a parameter to Match(). Not sure which was intended here.

This commit is contained in:
Reijo Tomperi 2009-01-03 21:07:37 +00:00
parent 1594f453cc
commit e097232e99
1 changed files with 1 additions and 1 deletions

View File

@ -646,7 +646,7 @@ void CheckOther::CheckStructMemberUsage()
if ( tok->fileIndex() != 0 )
continue;
if (Token::Match(tok2, ". %var%", 0, varnames))
if (Token::Match(tok2, ". %var1%", 0, varnames))
{
if ( strcmp("=", tok2->strAt(2)) == 0 )
continue;