fixed more messages of 'use of uninitialized value ...' in 'fs' on FreeBSD

This commit is contained in:
Jordi Sanfeliu 2013-03-04 11:59:05 +01:00
parent 420eae562a
commit 294216c18f
1 changed files with 2 additions and 2 deletions

View File

@ -922,9 +922,9 @@ sub fs_cgi {
my $color; my $color;
my $str2; my $str2;
$str2 = $fs->{desc}->{$f[$n]} || $f[$n];
if($f[$n]) { if($f[$n]) {
$f[$n] = trim($f[$n]); $f[$n] = trim($f[$n]);
$str2 = $fs->{desc}->{$f[$n]} || $f[$n];
$str = sprintf("%-17s", $str2, 0, 17); $str = sprintf("%-17s", $str2, 0, 17);
if($f[$n] eq "/") { if($f[$n] eq "/") {
$color = "#EE4444"; $color = "#EE4444";
@ -938,9 +938,9 @@ sub fs_cgi {
push(@tmp, "LINE2:tim" . $n . $color . ":$str"); push(@tmp, "LINE2:tim" . $n . $color . ":$str");
push(@tmpz, "LINE2:tim" . $n . $color . ":$f[$n]\\g"); push(@tmpz, "LINE2:tim" . $n . $color . ":$f[$n]\\g");
} }
$str2 = $fs->{desc}->{$f[$n + 1]} || $f[$n + 1];
if($f[$n + 1]) { if($f[$n + 1]) {
$f[$n + 1] = trim($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); $str = sprintf("%-17s", $str2, 0, 17);
if($f[$n + 1] eq "/") { if($f[$n + 1] eq "/") {
$color = "#EE4444"; $color = "#EE4444";