From bb64b19e3e8942e610db2d3596d859f7c7864811 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Fri, 4 Sep 2020 19:04:43 +0300 Subject: Avoid warnings about use of uninitialized value Like these: Use of uninitialized value $feature{"Description"} in substitution (s///) at C:/lo/src/core/solenv/bin/modules/installer/windows/feature.pm line 362. Use of uninitialized value $feature{"Title"} in concatenation (.) or string at C:/lo/src/core/solenv/bin/modules/installer/windows/feature.pm line 370. Use of uninitialized value $feature{"Description"} in concatenation (.) or string at C:/lo/src/core/solenv/bin/modules/installer/windows/feature.pm line 370. gm_o_OGLTrans has no Title nor Description Change-Id: Ica247e071f252023e4cdec6f8ff15f0e0d3cedd5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102059 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- solenv/bin/modules/installer/windows/feature.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'solenv') diff --git a/solenv/bin/modules/installer/windows/feature.pm b/solenv/bin/modules/installer/windows/feature.pm index c97be4a9c98e..356220829893 100644 --- a/solenv/bin/modules/installer/windows/feature.pm +++ b/solenv/bin/modules/installer/windows/feature.pm @@ -357,8 +357,8 @@ sub create_feature_table $feature{'feature'} = get_feature_gid($onefeature); $feature{'feature_parent'} = get_feature_parent($onefeature); - $feature{'Title'} = $onefeature->{'Name'}; - $feature{'Description'} = $onefeature->{'Description'}; + $feature{'Title'} = $onefeature->{'Name'} // ""; + $feature{'Description'} = $onefeature->{'Description'} // ""; $feature{'Description'} =~ s/\\\"/\"/g; # no more masquerading of '"' $feature{'Display'} = get_feature_display($onefeature); $feature{'Level'} = get_feature_level($onefeature); -- cgit