diff options
author | Niko Tyni <ntyni@iki.fi> | 2007-07-17 12:44:51 +0200 |
---|---|---|
committer | Niko Tyni <ntyni@iki.fi> | 2007-07-17 12:44:51 +0200 |
commit | a0641940e2bc3a1b0490529d37212f98204042b8 (patch) | |
tree | fcb396ecd5e0040332a1a64dc65a443074c96f54 /lib | |
parent | 4f7bb7081fa7abb24508df16b2f25db369c55df7 (diff) | |
download | smokeping-a0641940e2bc3a1b0490529d37212f98204042b8.tar.gz smokeping-a0641940e2bc3a1b0490529d37212f98204042b8.tar.xz |
fix uses of uninitialized value in the loss_background code
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Smokeping.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index 3abcc9a..ec90ee4 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -868,7 +868,10 @@ sub get_detail ($$$$;$){ # determine a more 'pastel' version of the ping colours; this is # used for the optional loss background colouring foreach my $key (keys %lc) { - next if ($key == 0); + if ($key == 0) { + $lcback{$key} = ""; + next; + } my $web = $lc{$key}[1]; my @rgb = Smokeping::Colorspace::web_to_rgb($web); my @hsl = Smokeping::Colorspace::rgb_to_hsl(@rgb); |