summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera2020-04-13 23:54:09 +0000
committerAlvaro Herrera2020-04-13 23:57:40 +0000
commite56d717d8a23c48e4ab27b6bd6815c50dc3a378a (patch)
treef0b561ddf165b423885bd0e272783db41d26e052
parentbc3087b626d1073c9b7c9687b334785909ca2237 (diff)
Silence Perl warning
Now that warnings are enabled across the board, this code that tries to print an undef variable emits one. Silently printing the empty string achieves the previous behavior. Author: Álvaro Herrera <[email protected]> Reviewed-by: Andrew Dunstan <[email protected]> Discussion: https://postgr.es/m/[email protected]
-rw-r--r--doc/src/sgml/mk_feature_tables.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/src/sgml/mk_feature_tables.pl b/doc/src/sgml/mk_feature_tables.pl
index ee158cb1969..a9dfebfbb31 100644
--- a/doc/src/sgml/mk_feature_tables.pl
+++ b/doc/src/sgml/mk_feature_tables.pl
@@ -54,7 +54,9 @@ while (<$feat>)
{
print " <entry>$feature_id</entry>\n";
}
- print " <entry>" . $feature_packages{$feature_id} . "</entry>\n";
+ print " <entry>",
+ defined($feature_packages{$feature_id}) ? $feature_packages{$feature_id} : "",
+ "</entry>\n";
if ($subfeature_id)
{
print " <entry>$subfeature_name</entry>\n";