From e097232e990f32bd30eb639d4eb4b10e58953014 Mon Sep 17 00:00:00 2001 From: Reijo Tomperi Date: Sat, 3 Jan 2009 21:07:37 +0000 Subject: [PATCH] Possibly bug fix, changed %var% into %var1% as name was also given as a parameter to Match(). Not sure which was intended here. --- checkother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkother.cpp b/checkother.cpp index ecaae3d1e..13bd595f0 100644 --- a/checkother.cpp +++ b/checkother.cpp @@ -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;