From a0641940e2bc3a1b0490529d37212f98204042b8 Mon Sep 17 00:00:00 2001 From: Niko Tyni Date: Tue, 17 Jul 2007 10:44:51 +0000 Subject: fix uses of uninitialized value in the loss_background code --- lib/Smokeping.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/Smokeping.pm') 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); -- cgit v1.2.3-24-g4f1b