summaryrefslogtreecommitdiff
path: root/lib/mk-ca-bundle.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-01-05 23:53:26 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-01-05 23:53:26 +0100
commit619d1704ae04e1baa37b50744c3c778cc1978b5b (patch)
treecd0a98de3a702f09a9949afcb022b6b29d2a6fcd /lib/mk-ca-bundle.pl
parentd5f1590d5cfeb3188a302ff4e8cf09cc21f9197d (diff)
downloadcurl-619d1704ae04e1baa37b50744c3c778cc1978b5b.tar.gz
mk-ca-bundle.pl: avoid warnings with -d without parameter
Diffstat (limited to 'lib/mk-ca-bundle.pl')
-rwxr-xr-xlib/mk-ca-bundle.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/mk-ca-bundle.pl b/lib/mk-ca-bundle.pl
index 452008568..4b78ff187 100755
--- a/lib/mk-ca-bundle.pl
+++ b/lib/mk-ca-bundle.pl
@@ -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;