# HG changeset patch # User Matti Hamalainen # Date 1250487670 -10800 # Node ID 924720517cf9339f990983aed7310f15839e5a06 # Parent 8b33436dd18b391fa4e5eaaaa984560be1f2a5f3 Fix initialization of hash structure part, this fixes resetting of class hits to 1. diff -r 8b33436dd18b -r 924720517cf9 maltfilter --- a/maltfilter Mon Aug 17 08:22:38 2009 +0300 +++ b/maltfilter Mon Aug 17 08:41:10 2009 +0300 @@ -754,8 +754,8 @@ $struct->{$mip} = {} unless defined($struct->{$mip}); my $entry = $struct->{$mip}; - $struct->{$mip}{"reason"}{$mclass} = {}; - my $reason = $struct->{$mip}{"reason"}{$mclass}; + $entry->{"reason"}{$mclass} = {} unless defined($entry->{"reason"}{$mclass}); + my $reason = $entry->{"reason"}{$mclass}; # Add hits only when requested if ($addhits) {