Correct logic for finding shadow variables.

Change-Id: Ide03c3b92f70d5dad8d0dceca179ea6f3b9e1fd6
Reviewed-on: https://code.wireshark.org/review/10037
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Michael Mann 2015-08-14 21:13:51 -04:00
parent 5a7f574cbd
commit 0d61321f69
1 changed files with 1 additions and 1 deletions

View File

@ -1454,7 +1454,7 @@ sub checkShadowVariable($$$)
for my $api ( @{$groupHashRef} )
{
my $cnt = 0;
while (${$fileContentsRef} =~ m/ \W $api \W* \( /gx)
while (${$fileContentsRef} =~ m/ \s $api \s* [^\(\w] /gx)
{
$cnt += 1;
}