winemaker: Avoid setting variable to an uninitialized value.
This commit is contained in:
parent
eb0a032a8c
commit
1d33f8db9b
|
@ -2251,9 +2251,13 @@ sub generate_list($$$;$)
|
|||
foreach my $item (@$list) {
|
||||
my $value;
|
||||
if (defined $data) {
|
||||
$value=&$data($item);
|
||||
$value=&$data($item);
|
||||
} else {
|
||||
$value=$item;
|
||||
if (defined $item) {
|
||||
$value=$item;
|
||||
} else {
|
||||
$value="";
|
||||
}
|
||||
}
|
||||
if ($value ne "") {
|
||||
if ($first) {
|
||||
|
|
Loading…
Reference in New Issue