Skip to content

Commit 278de77

Browse files
committed
configdata.pm.in: Don't try to quotify undefined values
Fixes openssl#10503 Reviewed-by: Matthias St. Pierre <[email protected]> (Merged from openssl#10548)
1 parent d3a27c5 commit 278de77

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

configdata.pm.in

+7-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,13 @@ _____
245245
foreach (sort keys %target) {
246246
next if $_ =~ m|^_| || $_ eq 'template';
247247
my $quotify = sub {
248-
map { (my $x = $_) =~ s|([\\\$\@"])|\\$1|g; "\"$x\""} @_;
248+
map {
249+
if (defined $_) {
250+
(my $x = $_) =~ s|([\\\$\@"])|\\$1|g; "\"$x\""
251+
} else {
252+
"undef";
253+
}
254+
} @_;
249255
};
250256
print ' ', $_, ' => ';
251257
if (ref($target{$_}) eq "ARRAY") {

0 commit comments

Comments
 (0)