Sfoglia il codice sorgente

Fix uninitialised values (SF #1354920 and #1498999)

Torbjorn Svensson 20 anni fa
parent
commit
39d96c918a
2 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 1 0
      docs/Changelog
  2. 1 0
      modules/Pisg/Parser/Logfile.pm

+ 1 - 0
docs/Changelog

@@ -31,6 +31,7 @@ pisg (0.69) - ??
        in the CSS file.
      + Fix title tooltip (SF #1492153).
      + Fix -cchannels option (SF #1369457).
+     + Fix uninitialised values in charts (SF #1354920 and #1498999)
    * Features:
      + Add "+CVS" to versionstring if ./CVS is found
    * Parsers:

+ 1 - 0
modules/Pisg/Parser/Logfile.pm

@@ -588,6 +588,7 @@ sub _parse_file
     my $wordcount = sqrt(sqrt(keys %{$stats->{wordcounts}})); # remove less frequent words
     foreach my $word (keys %{$stats->{wordcounts}}) {
         if ($stats->{wordcounts}->{$word} < $wordcount) {
+            next if defined $stats->{chartcounts}{$word};
             delete $stats->{wordcounts}->{$word};
             delete $stats->{wordnicks}->{$word};
             delete $stats->{word_upcase}->{$word};