]> asedeno.scripts.mit.edu Git - linux.git/commit
leaking_addresses: explicitly name variable used in regex
authorTobin C. Harding <me@tobin.cc>
Thu, 1 Mar 2018 21:42:59 +0000 (08:42 +1100)
committerTobin C. Harding <me@tobin.cc>
Fri, 6 Apr 2018 22:50:34 +0000 (08:50 +1000)
commit2306a67745ebdf3f98bc954248b74a3f1d57cdc2
tree74e40740eb52d3dfc551f5b3f01e29dd6d360068
parent34827374492580b27c3cba29d493dab28c8c25d3
leaking_addresses: explicitly name variable used in regex

Currently sub routine may_leak_address() is checking regex against Perl
special variable $_ which is _fortunately_ being set correctly in a loop
before this sub routine is called.  We already have declared a variable
to hold this value '$line' we should use it.

Use $line in regex match instead of implicit $_

Signed-off-by: Tobin C. Harding <me@tobin.cc>
scripts/leaking_addresses.pl