projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5f1590
)
mk-ca-bundle.pl: avoid warnings with -d without parameter
author
Daniel Stenberg
<daniel@haxx.se>
Sun, 5 Jan 2014 22:53:26 +0000
(23:53 +0100)
committer
Daniel Stenberg
<daniel@haxx.se>
Sun, 5 Jan 2014 22:53:26 +0000
(23:53 +0100)
lib/mk-ca-bundle.pl
patch
|
blob
|
history
diff --git
a/lib/mk-ca-bundle.pl
b/lib/mk-ca-bundle.pl
index
4520085
..
4b78ff1
100755
(executable)
--- 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;