[lintian] 02/02: c/cruft: Clean up some variable declarations
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 61750102c5b8175e7d275dd834e4c19d8f30a193
Author: Niels Thykier <niels@thykier.net>
Date: Sun Mar 23 08:11:06 2014 +0100
c/cruft: Clean up some variable declarations
Signed-off-by: Niels Thykier <niels@thykier.net>
---
checks/cruft.pm | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/checks/cruft.pm b/checks/cruft.pm
index 6cfab49..a06d018 100644
--- a/checks/cruft.pm
+++ b/checks/cruft.pm
@@ -787,8 +787,7 @@ sub full_text_check {
# some js file comments are really really long
my $sfd
= Lintian::SlidingWindow->new($fd, \&lc_block,$isjsfile ? 8092 : 4096);
- my %licenseproblemhash = ();
- my $cleanjsblock = '';
+ my %licenseproblemhash;
# we try to read this file in block and use a sliding window
# for efficiency. We store two blocks in @queue and the whole
@@ -796,8 +795,7 @@ sub full_text_check {
# per file
BLOCK:
while (my $block = $sfd->readwindow()) {
- my $cleanedblock;
- my %matchedkeyword;
+ my ($cleanedblock, %matchedkeyword);
my $blocknumber = $sfd->blocknumber();
if(
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: