aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-08-14 21:13:51 -0400
committerMichael Mann <mmann78@netscape.net>2015-08-22 12:31:06 +0000
commit0d61321f698615564aab8b75a717989389fae579 (patch)
treebd3950cda0a6d074348d75cfa23334cb814eae49 /tools
parent5a7f574cbd2af2f271df1a94e682ade7fa607ef9 (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-xtools/checkAPIs.pl2
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;
}