avoid warning about undefined value

This commit is contained in:
Dietmar Maurer 2013-03-27 06:29:41 +01:00
parent 3648a28c27
commit e659819599

View File

@ -591,7 +591,7 @@ sub parse_res_bar_limit {
if ($text =~ m/^(\d+)([TGMKP])?$/i) {
my $val = $1;
my $mult = lc($2);
my $mult = $2 ? lc($2) : '';
if ($mult eq 'k') {
$val = $val * 1024;
} elsif ($mult eq 'm') {