Fix duplicate var
authorJamie Cameron <jcameron@webmin.com>
Mon, 25 Apr 2011 23:20:45 +0000 (16:20 -0700)
committerJamie Cameron <jcameron@webmin.com>
Mon, 25 Apr 2011 23:20:45 +0000 (16:20 -0700)
webminlog/webminlog-lib.pl

index 769064e..7d5ca0f 100755 (executable)
@@ -40,6 +40,7 @@ my %index;
 &build_log_index(\%index);
 my @rv;
 open(LOG, $webmin_logfile);
+my ($id, $idx);
 while(($id, $idx) = each %index) {
        my ($pos, $time, $user, $module, $sid) = split(/\s+/, $idx);
        next if (defined($onlyuser) && $user ne $onlyuser);
@@ -325,7 +326,6 @@ sub get_action
 {
 my %index;
 &build_log_index(\%index);
-my $act;
 open(LOG, $webmin_logfile);
 local @idx = split(/\s+/, $index{$_[0]});
 seek(LOG, $idx[0], 0);