Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e56d717

Browse files
committed
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 <alvherre@alvh.no-ip.org> Reviewed-by: Andrew Dunstan <andrew.dunstan@2ndquadrant.com> Discussion: https://postgr.es/m/E1jO1VT-0008Qk-TM@gemulon.postgresql.org
1 parent bc3087b commit e56d717

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/src/sgml/mk_feature_tables.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@
5454
{
5555
print " <entry>$feature_id</entry>\n";
5656
}
57-
print " <entry>" . $feature_packages{$feature_id} . "</entry>\n";
57+
print " <entry>",
58+
defined($feature_packages{$feature_id}) ? $feature_packages{$feature_id} : "",
59+
"</entry>\n";
5860
if ($subfeature_id)
5961
{
6062
print " <entry>$subfeature_name</entry>\n";

0 commit comments

Comments
 (0)