mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
configdata.pm.in: Don't try to quotify undefined values
Fixes #10503 Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> (Merged from https://github.com/openssl/openssl/pull/10548)
This commit is contained in:
parent
d3a27c5ee4
commit
278de77b88
@ -245,7 +245,13 @@ _____
|
||||
foreach (sort keys %target) {
|
||||
next if $_ =~ m|^_| || $_ eq 'template';
|
||||
my $quotify = sub {
|
||||
map { (my $x = $_) =~ s|([\\\$\@"])|\\$1|g; "\"$x\""} @_;
|
||||
map {
|
||||
if (defined $_) {
|
||||
(my $x = $_) =~ s|([\\\$\@"])|\\$1|g; "\"$x\""
|
||||
} else {
|
||||
"undef";
|
||||
}
|
||||
} @_;
|
||||
};
|
||||
print ' ', $_, ' => ';
|
||||
if (ref($target{$_}) eq "ARRAY") {
|
||||
|
Loading…
Reference in New Issue
Block a user