From 1d33f8db9be0b71680161644d7d47b85178ff2c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Hentschel?= Date: Thu, 17 Jun 2010 21:10:01 +0200 Subject: [PATCH] winemaker: Avoid setting variable to an uninitialized value. --- tools/winemaker | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/winemaker b/tools/winemaker index 48e7bdee78..23f800fe45 100755 --- a/tools/winemaker +++ b/tools/winemaker @@ -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) { -- 2.32.0.93.g670b81a890