From 294216c18f1601e87258b00431b27cb733600fe0 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Mon, 4 Mar 2013 11:59:05 +0100 Subject: [PATCH] fixed more messages of 'use of uninitialized value ...' in 'fs' on FreeBSD --- lib/fs.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fs.pm b/lib/fs.pm index 98cf027..2080a34 100644 --- a/lib/fs.pm +++ b/lib/fs.pm @@ -922,9 +922,9 @@ sub fs_cgi { my $color; my $str2; - $str2 = $fs->{desc}->{$f[$n]} || $f[$n]; if($f[$n]) { $f[$n] = trim($f[$n]); + $str2 = $fs->{desc}->{$f[$n]} || $f[$n]; $str = sprintf("%-17s", $str2, 0, 17); if($f[$n] eq "/") { $color = "#EE4444"; @@ -938,9 +938,9 @@ sub fs_cgi { push(@tmp, "LINE2:tim" . $n . $color . ":$str"); push(@tmpz, "LINE2:tim" . $n . $color . ":$f[$n]\\g"); } - $str2 = $fs->{desc}->{$f[$n + 1]} || $f[$n + 1]; if($f[$n + 1]) { $f[$n + 1] = trim($f[$n + 1]); + $str2 = $fs->{desc}->{$f[$n + 1]} || $f[$n + 1]; $str = sprintf("%-17s", $str2, 0, 17); if($f[$n + 1] eq "/") { $color = "#EE4444";