mirror of
https://github.com/curl/curl.git
synced 2026-07-23 01:37:15 +03:00
mk-ca-bundle.pl: avoid warnings with -d without parameter
This commit is contained in:
parent
d5f1590d5c
commit
619d1704ae
1 changed files with 5 additions and 0 deletions
|
|
@ -64,6 +64,11 @@ $0 =~ s@.*(/|\\)@@;
|
|||
$Getopt::Std::STANDARD_HELP_VERSION = 1;
|
||||
getopts('bd:fhilnqtuvw:');
|
||||
|
||||
if(!defined($opt_d)) {
|
||||
# to make plain "-d" use not cause warnings, and actually still work
|
||||
$opt_d = 'release';
|
||||
}
|
||||
|
||||
# Use predefined URL or else custom URL specified on command line.
|
||||
my $url = ( defined( $urls{$opt_d} ) ) ? $urls{$opt_d} : $opt_d;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue