]> git.baikalelectronics.ru Git - kernel.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)
commit93c89ee913278f3a367bf9a364c37a5a1f296a9b
tree74e40740eb52d3dfc551f5b3f01e29dd6d360068
parente7540e0782f0030c2fb503aef633bad293b8a742
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