diff options
author | Michael Mann <mmann78@netscape.net> | 2015-08-14 21:13:51 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-08-22 12:31:06 +0000 |
commit | 0d61321f698615564aab8b75a717989389fae579 (patch) | |
tree | bd3950cda0a6d074348d75cfa23334cb814eae49 /tools | |
parent | 5a7f574cbd2af2f271df1a94e682ade7fa607ef9 (diff) |
Correct logic for finding shadow variables.
Change-Id: Ide03c3b92f70d5dad8d0dceca179ea6f3b9e1fd6
Reviewed-on: https://code.wireshark.org/review/10037
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/checkAPIs.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl index 16772fcf39..448cb54d2a 100755 --- a/tools/checkAPIs.pl +++ b/tools/checkAPIs.pl @@ -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; } |