summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2020-09-04 19:04:43 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2020-09-05 07:01:12 +0200
commitbb64b19e3e8942e610db2d3596d859f7c7864811 (patch)
tree82daf52d1aaeb240c430f8ee8a4568b26e907da8 /solenv
parent0e8696bc2784364cfbefd7fa55da733e350c56cd (diff)
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 <mike.kaganski@collabora.com>
Diffstat (limited to 'solenv')
-rw-r--r--solenv/bin/modules/installer/windows/feature.pm4
1 files changed, 2 insertions, 2 deletions
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);