You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by mm...@apache.org on 2010/10/29 17:43:10 UTC
svn commit: r1028810 - /spamassassin/trunk/sa-update.raw
Author: mmartinec
Date: Fri Oct 29 15:43:10 2010
New Revision: 1028810
URL: http://svn.apache.org/viewvc?rev=1028810&view=rev
Log:
sa-update.raw: remove redundant array and hash initializations
Modified:
spamassassin/trunk/sa-update.raw
Modified: spamassassin/trunk/sa-update.raw
URL: http://svn.apache.org/viewvc/spamassassin/trunk/sa-update.raw?rev=1028810&r1=1028809&r2=1028810&view=diff
==============================================================================
--- spamassassin/trunk/sa-update.raw (original)
+++ spamassassin/trunk/sa-update.raw Fri Oct 29 15:43:10 2010
@@ -129,7 +129,7 @@ my $IGNORE_MIRBY_OLDER_THAN = (24 * 60 *
use constant MIRBY_DOWNLOADED => -1;
-my %opt = ();
+my %opt;
@{$opt{'gpgkey'}} = ();
@{$opt{'channel'}} = ();
my $GPG_ENABLED = 1;
@@ -570,7 +570,7 @@ foreach my $channel (@channels) {
# Read in the list of mirrors
dbg("channel: reading MIRRORED.BY file");
- my %mirrors = ();
+ my %mirrors;
my @mirrors = split(/^/, $mirby);
while(my $mirror = shift @mirrors) {
chomp $mirror;
@@ -901,8 +901,8 @@ ENDOFVALIDATIONERR
'try' => sub {
# the last step is to create the .cf and .pre files to include the
# channel files
- my @CF = ();
- my @PRE = ();
+ my @CF;
+ my @PRE;
dbg("channel: creating update cf/pre files");
@@ -915,7 +915,7 @@ ENDOFVALIDATIONERR
die "fatal: can't access $UPDDir: $!\n";
}
- my @files = ();
+ my @files;
while(my $file = readdir(DIR)) {
next if $file eq '.' || $file eq '..';
Mail::SpamAssassin::Util::untaint_var(\$file);