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:
parent
5a7f574cbd
commit
0d61321f69
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue